Skip to content

Commit

Permalink
Default to using appindicator under wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfix committed Jan 21, 2021
1 parent 33f34a4 commit d83aa33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion udiskie/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class Daemon(_EntryPoint):
'notify': True,
'tray': False,
'menu': 'flat',
'appindicator': False,
'appindicator': None,
'file_manager': 'xdg-open',
'terminal': '',
'password_prompt': 'builtin:gui',
Expand Down Expand Up @@ -376,6 +376,8 @@ def _init(self):
options['notify'] = False

show_tray = options['tray'] or options['appindicator']
if show_tray and _in_Wayland and options['appindicator'] is None:
options['appindicator'] = True

if show_tray and not (_in_X or _in_Wayland):
no_tray_support = _(
Expand Down

0 comments on commit d83aa33

Please sign in to comment.