Skip to content

Commit

Permalink
Fix missing app ID and icon on Wayland.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lightbulbjim committed Aug 27, 2019
1 parent 9a15ef3 commit aba8c41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit aba8c41

Please sign in to comment.