Add --no-appindicator command line opt to force fallback to GtkStatusIcon
This commit is contained in:
parent
573476817a
commit
7debf5ddb0
|
@ -252,13 +252,19 @@ if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser(description=_('system tray icon that allows users to start, stop and'
|
parser = argparse.ArgumentParser(description=_('system tray icon that allows users to start, stop and'
|
||||||
'monitor JACK, as well as start some JACK related applications'),
|
'monitor JACK, as well as start some JACK related applications'),
|
||||||
epilog=_('This program is part of the LADITools suite.'))
|
epilog=_('This program is part of the LADITools suite.'))
|
||||||
parser.add_argument('--version', action='version', version="%(prog)s " + get_version_string())
|
parser.add_argument('--no-appindicator',
|
||||||
parser.parse_args()
|
action='store_true',
|
||||||
|
help=_('Force fallback to system tray.'))
|
||||||
|
parser.add_argument('--version',
|
||||||
|
action='version',
|
||||||
|
version="%(prog)s " + get_version_string())
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
Gtk.init(None)
|
Gtk.init(None)
|
||||||
|
|
||||||
if AppIndicator3:
|
if (not args.no_appindicator) and AppIndicator3:
|
||||||
LadiStatusIndicator().run()
|
LadiStatusIndicator().run()
|
||||||
else:
|
else:
|
||||||
LadiStatusTray().run()
|
LadiStatusTray().run()
|
||||||
|
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
Loading…
Reference in New Issue