1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-10 17:13:39 +01:00

add wayland icon

This commit is contained in:
Fabio Bas 2021-03-12 14:49:50 +01:00 committed by John Maguire
parent 6314c8cb2d
commit f56244cd8e

View File

@ -388,6 +388,12 @@ int main(int argc, char* argv[]) {
}
#endif
// Set the name of the app desktop file as per the freedesktop specifications
// This is needed on Wayland for the main window to show the correct icon
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
QGuiApplication::setDesktopFileName("clementine");
#endif
// Resources
Q_INIT_RESOURCE(data);
#ifdef HAVE_TRANSLATIONS