From 82718f05be44e1a3ce6bc5ba0d60d76d9b4f2ad6 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 13 Mar 2019 10:47:41 +0100 Subject: [PATCH] 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. --- src/common/utility_unix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/utility_unix.cpp b/src/common/utility_unix.cpp index fa11aa67fc7..0dc74bed86e 100644 --- a/src/common/utility_unix.cpp +++ b/src/common/utility_unix.cpp @@ -76,7 +76,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";