diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2018-09-03 22:05:48 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-09 18:44:40 -0700 |
commit | 12d75001a0f54ea760848d13abf8389a90279434 (patch) | |
tree | 6e5725d2d3ad36f95bba78cbb31514284430d20f /core/qt-init.cpp | |
parent | bcf568586de30be23bd5ff37746b6b4eb1140167 (diff) | |
download | subsurface-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.cpp | 3 |
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) |