1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-08-14 17:17:04 +02:00

Linux: Add autostart delay to avoid tray issues

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

@@ -82,7 +82,8 @@ void setLaunchOnStartup_private(const QString &appName, const QString &guiName,
<< QLatin1String("Categories=") << QLatin1String("Network") << endl << QLatin1String("Categories=") << QLatin1String("Network") << endl
<< QLatin1String("Type=") << QLatin1String("Application") << endl << QLatin1String("Type=") << QLatin1String("Application") << endl
<< QLatin1String("StartupNotify=") << "false" << 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 { } else {
if (!QFile::remove(desktopFileLocation)) { if (!QFile::remove(desktopFileLocation)) {
qCWarning(lcUtility) << "Could not remove autostart desktop file"; qCWarning(lcUtility) << "Could not remove autostart desktop file";