New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] "busy" mode to mute notification sounds #16109
Comments
Telegram supports KDE's extension to the fdo notifications standard called |
If I understand you correctly, Telegram reads a non-standard setting in the freedesktop.org DBus tree to decide whether or not to send notifications. As far as I can tell, zero of the standalone notification daemons listed on the Arch wiki support setting it when you toggle their "do not disturb" options, such as xfce4-notifyd's one. Meanwhile, Telegram doesn't actually send its notifications via the org.freedesktop.Notifications service; it seems to have its own implementation of notifications. Do I have this right? Do you know of a way to change this setting from the command line? Maybe it's possible with Or else, might it be possible to opt out of Telegram's own notification implementation and have it use the system one instead? |
Well, that's why I'm saying "Ask your DE or notification daemon to support it". Telegram can't do much if the system doesn't expose this information.
This should be supported by your notification service.
Do you have ever looked at notification settings in Telegram? 😕 |
Well it isn't supported by anything but KDE as far as I can tell.
I had not looked thoroughly enough. Now I have and I see the option to use native notifications. Good. Thanks.
This seems like a bug. Notification sounds should be disabled as soon as the user opts to use native notifications, since the user's notification daemon might make sounds of its own. Since you do something special for KDE, could you also read XFCE's "do not disturb" flag? You can get it via |
Well, I don't see other proposations for the spec about this.
The only reason it's supported is it's an addition to the fdo spec and gets the state by the same protocol without involving any DE-specific settings storages and ugly terminal commands. |
tdesktop sets |
OK. I've asked the XFCE developers if they'll support that extension, and also the developers of another standalone notification daemon (Github shows the reference above).
OK, so that would mitigate two sounds playing at once in the case where the user has set up standard system notifications to make a sound, as long as the notification daemon supports that flag. But I was just trying to conjure up another example of a problem caused by the sound. The The notification sound is part of the notification, so "use native notifications" should switch off Telegram's (non-native) notification sound. Don't you think so? |
Quoting myself just in case you skipped that part of the message:
|
Here's the draft: https://gitlab.freedesktop.org/xdg/xdg-specs/-/merge_requests/24/diffs?diff_id=61049#da076cf2b48b541efea144496447f56f7a2aeb38_1096_1151 tdesktop just checks for |
No, I did read that part. Why do you care that the notification daemons don't support the standard
You've pointed right to a very good argument against the existence of that flag.
The solution for non-KDE users is this: if "native notifications" are enabled, disable the non-native notification sound and send the custom sound hint in the native notification request. If the daemon doesn't support that, or does something non-predictable, then isn't that just the user's problem? Tell the users to ask their notification daemon developers to fix their implementation of the standard, just like with the non-standard flag you're telling me to get the daemons to support. |
In the first case the default UX will be bad and @john-preston won't allow such change, in the latter case it's a bad UX only for those who want to disable the sound automatically |
I don't understand -- "native notifications" is off by default. |
Who wouldn't want sound suppressed when they've intentionally set their machine to "do not disturb"...? |
A lot of users enable it explicitly. Also, it's not really off by default, the default is decided based on daemon capabilities: tdesktop/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp Lines 310 to 330 in 3343880
|
So you're saying the UX is "only bad for a lot of users". Add another config flag then, for whether to attempt to use native notification sound rather than Telegram's own sound? That way I and anyone else in my position could avoid the bad UX. |
This is not the right question, the right question is "How much users will complain after disabling sound for most of native notifications users?". That is, from my tests the sound was played only by GNOME's notification daemon. And it played only the sound from system sound theme, none of the daemons want to play tdesktop's mp3 notification sound. |
tdesktop follows 'less options is better' paradigm, sorry |
And apparently also the "a bad UX is fine even if it affects a lot of users" and "the options we have shouldn't act like the user would expect them to" paradigms. I'll just disable all sound. |
Sorry, there's no good solution given the restrictions tdesktop's core developer offer and the bad standartization state. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Is your feature request related to a problem?
When I walk away from the computer it still makes notification sounds. If I had been doing something loud during the day, the volume is still loud at night, and the notification sounds still play loudly.
Describe the solution you'd like
I want the ability to tell Telegram-desktop that I want notifications muted. Some chat apps call this "busy".
Crucially I want to be able to enable and disable this from a script, so I can make locking my computer automatically mute Telegram-desktop, and unlocking it restore the previous state.
Describe alternatives you've considered
Other context
Though not my use case, this should also stop visible notifications, and so would also be useful for use cases like when making a presentation or streaming.
The text was updated successfully, but these errors were encountered: