Philipp Hörist pushed to branch master at gajim / gajim
Commits:
8f032517 by André Apitzsch at 2022-07-07T18:46:32+02:00
fix: Flatpak: Fix display of tray icon using libappindicator
Appindicator cannot access custom icons in flatpak. That's why the status
is limited to
* online state (gajim icon) and
* new message state
Fixes: #10869
- - - - -
3 changed files:
- flatpak/org.gajim.Gajim.Devel.yaml
- flatpak/org.gajim.Gajim.yaml
- gajim/gtk/status_icon.py
Changes:
=====================================
flatpak/org.gajim.Gajim.Devel.yaml
=====================================
@@ -26,6 +26,8 @@ finish-args:
- --talk-name=org.kde.kwalletd5
# Notifications
- --talk-name=org.freedesktop.Notifications
+ # tray/status icon
+ - --talk-name=org.kde.StatusNotifierWatcher
# GnuPG
- --filesystem=~/.gnupg
# camera access
=====================================
flatpak/org.gajim.Gajim.yaml
=====================================
@@ -19,6 +19,8 @@ finish-args:
- --talk-name=org.kde.kwalletd5
# Notifications
- --talk-name=org.freedesktop.Notifications
+ # tray/status icon
+ - --talk-name=org.kde.StatusNotifierWatcher
# GnuPG
- --filesystem=~/.gnupg
# camera access
=====================================
gajim/gtk/status_icon.py
=====================================
@@ -298,7 +298,7 @@ def __init__(self) -> None:
self._status_icon = appindicator.Indicator.new(
'Gajim',
- 'dcraven-online',
+ 'org.gajim.Gajim',
appindicator.IndicatorCategory.COMMUNICATIONS)
self._status_icon.set_icon_theme_path(str(configpaths.get('ICONS')))
self._status_icon.set_status(appindicator.IndicatorStatus.ACTIVE)
@@ -320,6 +320,9 @@ def update_state(self, init: bool = False) -> None:
self._status_icon.set_icon_full(icon_name, _('Pending Event'))
return
+ if app.is_flatpak():
+ return
+
show = get_global_show()
icon_name = get_icon_name(show)
self._status_icon.set_icon_full(icon_name, show)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/8f0325177c33a37906df234b1023c2343fa25a21
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/8f0325177c33a37906df234b1023c2343fa25a21
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits