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'
|
||||
'monitor JACK, as well as start some JACK related applications'),
|
||||
epilog=_('This program is part of the LADITools suite.'))
|
||||
parser.add_argument('--version', action='version', version="%(prog)s " + get_version_string())
|
||||
parser.parse_args()
|
||||
parser.add_argument('--no-appindicator',
|
||||
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)
|
||||
|
||||
if AppIndicator3:
|
||||
if (not args.no_appindicator) and AppIndicator3:
|
||||
LadiStatusIndicator().run()
|
||||
else:
|
||||
LadiStatusTray().run()
|
||||
|
||||
sys.exit(0)
|
||||
|
|
Loading…
Reference in New Issue