diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-02-09 23:46:49 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-02-09 23:46:49 +0100 |
commit | dfb8f9a160622b77775b98c93aaacb29d2621f05 (patch) | |
tree | ec628a3ed3c7e835192f53d0a4c0ae85bc456b31 /src/main.cpp | |
parent | Merge pull request #924 from tastytea/wrap-room-name (diff) | |
download | nheko-dfb8f9a160622b77775b98c93aaacb29d2621f05.tar.xz |
Fix application name on Wayland in flatpak
fixes #903
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 9 |
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(); |