From f56244cd8e1bb68937fb4825d02611554cae511c Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Fri, 12 Mar 2021 14:49:50 +0100 Subject: [PATCH] add wayland icon --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 2f7d53828..681c3a0dc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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