From aba8c4180f0ab3d66c44f88b21f137b19d17bde8 Mon Sep 17 00:00:00 2001 From: Chris Rendle-Short Date: Wed, 28 Aug 2019 09:40:23 +1000 Subject: Fix missing app ID and icon on Wayland. X11/Wayland needs to know the name of the .desktop file to show a dock icon and application name. X11 has various means of guessing the filename (often WM_NAME). Wayland is a bit more strict, and requires that either the filename match the AppId or the .desktop filename be specified. --- main/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/main.cpp b/main/main.cpp index fefe570f..907aa9e2 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -92,6 +92,10 @@ int main(int argc, char *argv[]) { &MainWindow::messageAvailable); #endif +#if (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)) + QGuiApplication::setDesktopFileName("qtpass.desktop"); +#endif + w.show(); return SingleApplication::exec(); -- cgit v1.2.3