mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Show application icon in Plasma Wayland sessions (#3777)
This is required to show the keepassxc icon on Wayland windows in a Plasma Wayland session. kwin_wayland fetches application icons from .desktop files and it expects the desktop filename to be set on the QGuiApplication instance. Without this, kwin sets a generic Wayland icon as fallback.
This commit is contained in:
parent
38a663163d
commit
1722397040
@ -55,6 +55,10 @@ int main(int argc, char** argv)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
|
||||
QGuiApplication::setDesktopFileName("org.keepassxc.KeePassXC.desktop");
|
||||
#endif
|
||||
|
||||
Application app(argc, argv);
|
||||
Application::setApplicationName("keepassxc");
|
||||
Application::setApplicationVersion(KEEPASSXC_VERSION);
|
||||
|
Loading…
Reference in New Issue
Block a user