Skip to content

Commit

Permalink
src/main: fix application icon being generic on wayland
Browse files Browse the repository at this point in the history
For the application icon to be correct on Wayland, you need to call
QGuiApplication::setDesktopFileName() explicitly.
https://nicolasfella.de/posts/fixing-wayland-taskbar-icons/

Plasma 6 is a mess, I can't figure out how to downgrade without
destorying my system, I hate Wayland.
  • Loading branch information
ripose-jp committed Jun 18, 2024
1 parent b5aa03d commit bb4e9b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ int main(int argc, char **argv)
QCoreApplication::setOrganizationDomain("ripose.projects");
QCoreApplication::setApplicationName("memento");

/* Make the icon show up on Wayland */
QGuiApplication::setDesktopFileName("memento");

/* Construct the application */
QApplication memento(argc, argv);

Expand Down

0 comments on commit bb4e9b6

Please sign in to comment.