Set desktop file name to avoid a broken icon under KDE Wayland

Signed-off-by: Alexander Wilms <f.alexander.wilms@gmail.com>
This commit is contained in:
Alexander Wilms 2018-09-03 22:05:48 +02:00 committed by Dirk Hohndel
parent bcf568586d
commit 12d75001a0

View file

@ -23,6 +23,9 @@ void init_qt_late()
QCoreApplication::setOrganizationName("Subsurface"); QCoreApplication::setOrganizationName("Subsurface");
QCoreApplication::setOrganizationDomain("subsurface.hohndel.org"); 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) // enable user specific settings (based on command line argument)
if (settings_suffix) { if (settings_suffix) {
if (verbose) if (verbose)