Expose "Do not disturb" in a unique way #1321
Replies: 4 comments 13 replies
-
I'll move this into a GitHub discussion since we GitHub issues strictly for bug reports nowadays |
Beta Was this translation helpful? Give feedback.
-
Hello Cajus, In https://github.com/flatpak/xdg-desktop-portal/pull/1304/files, there are sound, vibration and led-color properties which all seem playable by the system (if implemented). So, it is not necessary for apps to be aware of DND mode - it is just a matter of sending the appropriate signals. Read this PR a bit and say if anything is missing and/or wrong from your point of view. |
Beta Was this translation helpful? Give feedback.
-
Hello! I do not think it makes sense to not expose DND mode to applications in case they might wilfully disturb - not exposing it is worse, as many more apps will then unknowingly disturb. |
Beta Was this translation helpful? Give feedback.
-
I would work on a pull request for signaling the DND flag, but I don't feel like that's time well spent at the moment. @flatpak/xdg-desktop-portal are there any additional opinions here? |
Beta Was this translation helpful? Give feedback.
-
Operating System
Fedora 39
XDG Desktop Portal version
1.18
XDG Desktop Portal version (Other)
No response
Desktop Environment
GNOME
Desktop Environment (Other)
No response
Expected Behavior
Current desktop environments like KDE, GNOME and Xfce have a feature to enable a DND mode. Currently this seems to be meant for standard desktop notifications only, but that kind of flag also could be useful for other apps (i.e. VoIP clients, that need to send ring tones).
I would expect that a DND flag is a portal queryable/monitorable flag. Maybe in the way KDE already does that.
Current Behavior
As of now there is no unique way of advertising that the desktop environment is in DND mode:
KDE
For KDE, DBus is used in the org.freedesktop.Notifications interface, which adds an Inhibit flag there.
GNOME
Here, gsettings is used (org.gnome.desktop.notifications show-banners), which cannot be monitored properly from inside a flatpak.
Xfce
For Xfce, DBus is used org.xfce.Xfconf /org/xfce/Xfconf org.xfce.Xfconf.xfce4-notifyd /do-not-disturb.
There may be more - thats what I've found so far.
Steps to Reproduce
Anything else we should know?
No response
Beta Was this translation helpful? Give feedback.
All reactions