Set the app_id on wayland

This commit is contained in:
Nicolas Werner 2021-12-19 22:54:50 +01:00
parent 9b25ef3c0d
commit 6be752e163
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
1 changed files with 5 additions and 0 deletions

View File

@ -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);