From: Christian Kamm Date: Wed, 13 Mar 2019 09:47:41 +0000 (+0100) Subject: Linux: Add autostart delay to avoid tray issues #6518 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~275 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d496aa5933f83a9cc61f4041f36d21868af63adf;p=nextcloud-desktop.git 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. --- diff --git a/src/common/utility_unix.cpp b/src/common/utility_unix.cpp index 3ae4d671e..a5f257d07 100644 --- a/src/common/utility_unix.cpp +++ b/src/common/utility_unix.cpp @@ -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";