KDE/Plasma has a new feature called "Do not disturb" now, it's been a couple of months maybe. You can set it from notifications tray icon as below.

I'd like Telegram desktop to respect "Do not disturb" setting of KDE/Plasma.
It's already since v1.9.20
Tested it with SkeddyBot. Sending myself a reminder in 1 minute while KDE was in "Do not disturb" mode. Telegram notifications still appear, probably due to it being not a native notification while other notification bubbles are suppressed.
It also works with non-native notificaitons. Check that you're not using telegram from snap, since snap sandbox doesn't support new plasma api yet and blocks dbus requests to Inhibited method.
That's quite strange. I receive it from official Manjaro repo. I guess I
should redirect this issue there.
On Thu, Apr 9, 2020, 11:35 PM ilya-fedin notifications@github.com wrote:
It also works with non-native notificaitons. Check that you're not using
telegram from snap, since snap sandbox doesn't support new plasma api yet
and blocks dbus requests to Inhibited method.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/telegramdesktop/tdesktop/issues/7597#issuecomment-611739771,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AASJW3GMSVDAN2C7WIMWEQTRLYWPJANCNFSM4MEJY56Q
.
So, if you're not the author of the issue and this feature already exists, issue can be closed?
So, if you're not the author of the issue and this feature already exists, issue can be closed?
I am the author of this issue but it can be closed for now. I'll forward this to Manjaro side, have them review. Maybe they'd like to comment on this. 🤷♂️
I _am_ the author of this issue but it can be closed _for now_.
Then you can check the log (~/.local/share/TelegramDesktop/log.txt). If there are any errors with requesting state of Don't Disturb mode, they should be logged.
Okay, so, if any googlers see this, there's a telegram-qt package in Manjaro official repos. I suspected maybe it's related to that, installed it and restarted Telegram. Now I have native notifications option. So, yeah, this issue is truly resolved.
No, it was a race condition issue as @ilya-fedin put. Well, you need to find a way to start Telegram later when booting. In Manjaro, running script below on boot should be just enough:
sleep 15 # adjust to a longer value if it does not work, or maybe shorther if your computer is a bit faster than mine
telegram-desktop
I suspected maybe it's related to that
lol, no, it's a library for telepathy-morse package.
Now I have native notifications option.
Sounds like a race condition on autostart
Let me test it.
There are already was issues about the fact that native notifications don't work if the telegram was launched at system start. We tried to improve the notification daemon check, but it does not seem to help: the notification daemon starts working much later. And if so, it can only be fixed on the KDE side.
Sounds like a race condition on autostart
You were right. I think running a custom script with sleep will do the trick for now. I will somehow send the logs to KDE I suppose. Thank you.
I think running a custom script with sleep will do the trick for now.
btw, there are session restoring feature and autostart. If you have activated the first, then it can start tdesktop, which worked on your system shutdown. Then you can add tdesktop to exclusion list and look if it will work properly only with autostart (session restoring and autostart are performing on different starting stages).