Linux: Add autostart delay to avoid tray issues #6518

It seems that sometimes the tray implementation isn't ready on system
startup. Retrying later seems to not help. Delaying the start of the
client is the workaround that people have reported as effective.
This commit is contained in:
Christian Kamm 2019-03-13 10:47:41 +01:00 committed by Kevin Ottens
parent 5da48a5239
commit d496aa5933
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -82,7 +82,8 @@ void setLaunchOnStartup_private(const QString &appName, const QString &guiName,
<< QLatin1String("Categories=") << QLatin1String("Network") << endl
<< QLatin1String("Type=") << QLatin1String("Application") << endl
<< QLatin1String("StartupNotify=") << "false" << endl
<< QLatin1String("X-GNOME-Autostart-enabled=") << "true" << endl;
<< QLatin1String("X-GNOME-Autostart-enabled=") << "true" << endl
<< QLatin1String("X-GNOME-Autostart-Delay=10") << endl;
} else {
if (!QFile::remove(desktopFileLocation)) {
qCWarning(lcUtility) << "Could not remove autostart desktop file";