Philipp Hörist pushed to branch gajim_1.1 at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/application.py
    ... ... @@ -40,6 +40,7 @@ from urllib.parse import unquote
    40 40
     
    
    41 41
     from gi.repository import GLib, Gio, Gtk
    
    42 42
     
    
    43
    +import gajim
    
    43 44
     from gajim.common import app
    
    44 45
     from gajim.common import configpaths
    
    45 46
     from gajim.common import logging_helpers
    
    ... ... @@ -304,6 +305,9 @@ class GajimApplication(Gtk.Application):
    304 305
                                   application: Gtk.Application,
    
    305 306
                                   options: GLib.VariantDict) -> int:
    
    306 307
             # Parse all options that have to be executed before ::startup
    
    308
    +        if options.contains('version'):
    
    309
    +            print(gajim.__version__)
    
    310
    +            return 0
    
    307 311
             if options.contains('profile'):
    
    308 312
                 # Incorporate profile name into application id
    
    309 313
                 # to have a single app instance for each profile.