Philipp Hörist pushed to branch master at gajim / gajim


Commits:
33bbbe38 by lovetox at 2022-06-13T22:37:23+02:00
fix: Flatpak: Determine notification backend caps with dbus

- - - - -


3 changed files:

- flatpak/org.gajim.Gajim.Devel.yaml
- flatpak/org.gajim.Gajim.yaml
- gajim/gtk/notification.py


Changes:

=====================================
flatpak/org.gajim.Gajim.Devel.yaml
=====================================
@@ -24,6 +24,8 @@ finish-args:
   # Keyring
   - --talk-name=org.freedesktop.secrets
   - --talk-name=org.kde.kwalletd5
+  # Notifications
+  - --talk-name=org.freedesktop.Notifications
   # GnuPG
   - --filesystem=~/.gnupg
   # camera access


=====================================
flatpak/org.gajim.Gajim.yaml
=====================================
@@ -17,6 +17,8 @@ finish-args:
   # Keyring
   - --talk-name=org.freedesktop.secrets
   - --talk-name=org.kde.kwalletd5
+  # Notifications
+  - --talk-name=org.freedesktop.Notifications
   # GnuPG
   - --filesystem=~/.gnupg
   # camera access


=====================================
gajim/gtk/notification.py
=====================================
@@ -279,7 +279,7 @@ def __init__(self):
         log.info('Detected notification capabilities: %s', self._caps)
 
     def _detect_dbus_caps(self) -> None:
-        if app.is_flatpak() or app.desktop_env == 'gnome':
+        if app.desktop_env == 'gnome':
             # Gnome Desktop does not use org.freedesktop.Notifications.
             # It has its own API at org.gtk.Notifications, which is not an
             # implementation of the freedesktop spec. There is no documentation



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/33bbbe38eb781562f5d378e437d30aa8607e9574

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/33bbbe38eb781562f5d378e437d30aa8607e9574
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

Reply via email to