Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
d442bab0 by wurstsalat at 2024-09-09T22:56:41+02:00
fix: StatusIcon: Use get_application_id for Gajim icon
This attempts to fix an issue with a missing tray icon on Flatpak, see #11975
- - - - -
1 changed file:
- gajim/gtk/status_icon.py
Changes:
=====================================
gajim/gtk/status_icon.py
=====================================
@@ -295,8 +295,9 @@ def __init__(self) -> None:
assert AppIndicator is not None
self._status_icon = AppIndicator.Indicator.new(
'Gajim',
- 'org.gajim.Gajim',
- AppIndicator.IndicatorCategory.COMMUNICATIONS)
+ app.app.get_application_id() or 'org.gajim.Gajim',
+ AppIndicator.IndicatorCategory.COMMUNICATIONS
+ )
if not app.is_flatpak():
self._status_icon.set_icon_theme_path(str(configpaths.get('ICONS')))
self._status_icon.set_status(AppIndicator.IndicatorStatus.ACTIVE)
@@ -321,7 +322,10 @@ def update_state(self, init: bool = False) -> None:
return
if app.is_flatpak():
- self._status_icon.set_icon_full('org.gajim.Gajim', 'online')
+ self._status_icon.set_icon_full(
+ app.app.get_application_id() or 'org.gajim.Gajim',
+ 'online'
+ )
return
show = get_global_show()
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d442bab052a77db53de5b2fe207a23dcfd116e5a
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d442bab052a77db53de5b2fe207a23dcfd116e5a
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]