From 12d75001a0f54ea760848d13abf8389a90279434 Mon Sep 17 00:00:00 2001 From: Alexander Wilms Date: Mon, 3 Sep 2018 22:05:48 +0200 Subject: [PATCH] Set desktop file name to avoid a broken icon under KDE Wayland Signed-off-by: Alexander Wilms --- core/qt-init.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/qt-init.cpp b/core/qt-init.cpp index b2d178e8e..bccb10472 100644 --- a/core/qt-init.cpp +++ b/core/qt-init.cpp @@ -23,6 +23,9 @@ void init_qt_late() QCoreApplication::setOrganizationName("Subsurface"); QCoreApplication::setOrganizationDomain("subsurface.hohndel.org"); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)) && defined(Q_OS_LINUX) + QGuiApplication::setDesktopFileName("subsurface"); +#endif // enable user specific settings (based on command line argument) if (settings_suffix) { if (verbose)