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
1 changed files with 6 additions and 0 deletions

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