Skip to content

Commit

Permalink
Linux: Add autostart delay to avoid tray issues #6518
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ckamm committed Mar 13, 2019
1 parent 94230e5 commit 82718f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/utility_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 82718f0

Please sign in to comment.