diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-19 22:54:50 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-19 22:54:50 +0100 |
commit | 6be752e163e2caedc4ff8f9ae4fd637d8eefcdc2 (patch) | |
tree | 0220804ae2a167ac4c5bf4c125fd6d8a6080807b | |
parent | Set notification category (diff) | |
download | nheko-6be752e163e2caedc4ff8f9ae4fd637d8eefcdc2.tar.xz |
Set the app_id on wayland
-rw-r--r-- | src/main.cpp | 5 |
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); |