Expose "Do not disturb" in a unique way #1321
cajus
started this conversation in
New Portals
Replies: 2 comments 4 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.
1 reply
-
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.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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