summary refs log tree commit diff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-02-09 23:46:49 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-02-09 23:46:49 +0100
commitdfb8f9a160622b77775b98c93aaacb29d2621f05 (patch)
treeec628a3ed3c7e835192f53d0a4c0ae85bc456b31 /src/main.cpp
parentMerge pull request #924 from tastytea/wrap-room-name (diff)
downloadnheko-dfb8f9a160622b77775b98c93aaacb29d2621f05.tar.xz
Fix application name on Wayland in flatpak
fixes #903
Diffstat (limited to '')
-rw-r--r--src/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 24fc8415..47ebba27 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -231,10 +231,11 @@ main(int argc, char *argv[])
 #if !defined(Q_OS_MAC)
     app.setWindowIcon(QIcon::fromTheme(QStringLiteral("nheko"), QIcon{":/logos/nheko.png"}));
 #endif
-    if (userdata.isEmpty() || userdata == QLatin1String("default"))
-        app.setDesktopFileName(QStringLiteral("nheko"));
-    else
-        app.setDesktopFileName("nheko[" + userdata + "]");
+#ifdef NHEKO_FLATPAK
+    app.setDesktopFileName(QStringLiteral("io.github.NhekoReborn.Nheko"));
+#else
+    app.setDesktopFileName(QStringLiteral("nheko"));
+#endif
 
     http::init();