summaryrefslogtreecommitdiffstats
path: root/core/qt-init.cpp
diff options
context:
space:
mode:
authorGravatar Alexander Wilms <f.alexander.wilms@gmail.com>2018-09-03 22:05:48 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-09 18:44:40 -0700
commit12d75001a0f54ea760848d13abf8389a90279434 (patch)
tree6e5725d2d3ad36f95bba78cbb31514284430d20f /core/qt-init.cpp
parentbcf568586de30be23bd5ff37746b6b4eb1140167 (diff)
downloadsubsurface-12d75001a0f54ea760848d13abf8389a90279434.tar.gz
Set desktop file name to avoid a broken icon under KDE Wayland
Signed-off-by: Alexander Wilms <f.alexander.wilms@gmail.com>
Diffstat (limited to 'core/qt-init.cpp')
-rw-r--r--core/qt-init.cpp3
1 files changed, 3 insertions, 0 deletions
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)