File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Keywords=@APPLICATION_NAME@;syncing;file;sharing;
10
10
X-GNOME-Autostart-Delay =3
11
11
MimeType =application/vnd.@APPLICATION_EXECUTABLE@;
12
12
Actions =Settings;Quit;
13
- StartupWMClass =@APPLICATION_NAME @
13
+ StartupWMClass =@APPLICATION_EXECUTABLE @
14
14
15
15
# Translations
16
16
Comment[oc]=@APPLICATION_NAME@ sincronizacion del client
Original file line number Diff line number Diff line change @@ -443,6 +443,17 @@ int main(int argc, char **argv)
443
443
app.setWindowIcon (Theme::instance ()->applicationIcon ());
444
444
app.setApplicationVersion (Theme::instance ()->versionSwitchOutput ());
445
445
446
+ #ifdef Q_OS_LINUX
447
+ // HACK:
448
+ // With X11 arg0.name is used to map WM_CLASS to the desktop file.
449
+ // With Wayland it uses app.desktopFileName() or app.organizationDomain()
450
+ // As we preferably use AppImages the real deskop file name is unknown, we just ensure it mathces the StartupWMClass entry in our desktop file
451
+ if (qgetenv (" XDG_SESSION_TYPE" ) == " wayland" ) {
452
+ // https://bugreports.qt.io/browse/QTBUG-77182 Qt 6.9 brings setAppId() but its private api
453
+ app.setDesktopFileName (QFileInfo (app.applicationFilePath ()).baseName ());
454
+ }
455
+ #endif
456
+
446
457
// Load the translations before option parsing, so we can localize help text and error messages.
447
458
const QString displayLanguage = setupTranslations (&app);
448
459
You can’t perform that action at this time.
0 commit comments