From dfb8f9a160622b77775b98c93aaacb29d2621f05 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 9 Feb 2022 23:46:49 +0100 Subject: Fix application name on Wayland in flatpak fixes #903 --- src/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') 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(); -- cgit 1.5.1