From d83aa33d9d65f9118992d915c82088213fb23b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Gl=C3=A4=C3=9Fle?= Date: Thu, 21 Jan 2021 23:47:42 +0100 Subject: [PATCH] Default to using appindicator under wayland --- udiskie/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/udiskie/cli.py b/udiskie/cli.py index e8ca09c3..c4c57b2a 100644 --- a/udiskie/cli.py +++ b/udiskie/cli.py @@ -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', @@ -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 = _(