diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/src/mainwindow.cpp | 3 | ||||
| -rw-r--r-- | src/src/moapplication.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/src/mainwindow.cpp b/src/src/mainwindow.cpp index c6d119b..457a3dd 100644 --- a/src/src/mainwindow.cpp +++ b/src/src/mainwindow.cpp @@ -263,7 +263,8 @@ MainWindow::MainWindow(Settings& settings, OrganizerCore& organizerCore, QApplication::setEffectEnabled(Qt::UI_AnimateCombo, false);
QApplication::setEffectEnabled(Qt::UI_AnimateTooltip, false);
QApplication::setEffectEnabled(Qt::UI_FadeTooltip, false);
- QApplication::setDesktopFileName(QString("com.fluorine.manager"));
+ // setDesktopFileName moved to MOApplication constructor (must be set before
+ // first window surface for Wayland app_id to take effect)
#ifdef MO2_WEBENGINE
QWebEngineProfile::defaultProfile()->setPersistentCookiesPolicy(
diff --git a/src/src/moapplication.cpp b/src/src/moapplication.cpp index 3009a45..45b79a8 100644 --- a/src/src/moapplication.cpp +++ b/src/src/moapplication.cpp @@ -229,6 +229,8 @@ MOApplication::MOApplication(int& argc, char** argv) : QApplication(argc, argv) // Ensure the app name is always "ModOrganizer" regardless of the binary
// filename (e.g. "ModOrganizer.bin" inside an AppImage).
setApplicationName("ModOrganizer");
+ setDesktopFileName(QStringLiteral("com.fluorine.manager"));
+ setWindowIcon(QIcon(":/MO/gui/app_icon"));
qputenv("QML_DISABLE_DISK_CACHE", "true");
|
