mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Gnome notification fix (#5215)
* Set notification desktop entry hint * Set X-GNOME-UsesNotifications flag
This commit is contained in:
committed by
John Preston
parent
3646301ce4
commit
496c361bdc
@@ -383,6 +383,7 @@ void RegisterCustomScheme() {
|
||||
s << "Categories=Network;InstantMessaging;Qt;\n";
|
||||
s << "MimeType=x-scheme-handler/tg;\n";
|
||||
s << "Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;\n";
|
||||
s << "X-GNOME-UsesNotifications=true\n";
|
||||
f.close();
|
||||
|
||||
if (_psRunCommand("desktop-file-install --dir=" + EscapeShell(QFile::encodeName(home + qsl(".local/share/applications"))) + " --delete-original " + EscapeShell(QFile::encodeName(file)))) {
|
||||
|
Reference in New Issue
Block a user