From f10f7d27ade8e7d68d79eb21d51ca73bbb89f4c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 7 Oct 2018 02:05:07 +0200 Subject: [PATCH] Bring back lost --version command --- gajim/application.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gajim/application.py b/gajim/application.py index d016f046c..464b367f4 100644 --- a/gajim/application.py +++ b/gajim/application.py @@ -40,6 +40,7 @@ from urllib.parse import unquote from gi.repository import GLib, Gio, Gtk +import gajim from gajim.common import app from gajim.common import configpaths from gajim.common import logging_helpers @@ -304,6 +305,9 @@ class GajimApplication(Gtk.Application): application: Gtk.Application, options: GLib.VariantDict) -> int: # Parse all options that have to be executed before ::startup + if options.contains('version'): + print(gajim.__version__) + return 0 if options.contains('profile'): # Incorporate profile name into application id # to have a single app instance for each profile.