summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-19 22:54:50 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-19 22:54:50 +0100
commit6be752e163e2caedc4ff8f9ae4fd637d8eefcdc2 (patch)
tree0220804ae2a167ac4c5bf4c125fd6d8a6080807b
parentSet notification category (diff)
downloadnheko-6be752e163e2caedc4ff8f9ae4fd637d8eefcdc2.tar.xz
Set the app_id on wayland
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 5a2cb413..b87e50ff 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -209,6 +209,11 @@ main(int argc, char *argv[])
 #if !defined(Q_OS_MAC)
     app.setWindowIcon(QIcon::fromTheme("nheko", QIcon{":/logos/nheko.png"}));
 #endif
+    if (userdata.isEmpty() || userdata == "default")
+        app.setDesktopFileName("nheko");
+    else
+        app.setDesktopFileName("nheko[" + userdata + "]");
+
     http::init();
 
     createStandardDirectory(QStandardPaths::CacheLocation);