mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-01 18:07:05 -04:00
Add delay to login startup on Linux
* Fix #5691 - add a 2 second delay to startup on Gnome to allow for tray initialization and Auto-Type shortcut registration. On KDE, start after the panel is started.
This commit is contained in:
parent
2fe9ea3f41
commit
a273deae12
1 changed files with 3 additions and 1 deletions
|
@ -107,7 +107,9 @@ void NixUtils::setLaunchAtStartup(bool enable)
|
||||||
<< QStringLiteral("Version=1.0") << "true" << '\n'
|
<< QStringLiteral("Version=1.0") << "true" << '\n'
|
||||||
<< QStringLiteral("Categories=Utility;Security;Qt;") << '\n'
|
<< QStringLiteral("Categories=Utility;Security;Qt;") << '\n'
|
||||||
<< QStringLiteral("MimeType=application/x-keepass2;") << '\n'
|
<< QStringLiteral("MimeType=application/x-keepass2;") << '\n'
|
||||||
<< QStringLiteral("X-GNOME-Autostart-enabled=true") << endl;
|
<< QStringLiteral("X-GNOME-Autostart-enabled=true") << '\n'
|
||||||
|
<< QStringLiteral("X-GNOME-Autostart-Delay=2") << '\n'
|
||||||
|
<< QStringLiteral("X-KDE-autostart-after=panel") << endl;
|
||||||
desktopFile.close();
|
desktopFile.close();
|
||||||
} else if (isLaunchAtStartupEnabled()) {
|
} else if (isLaunchAtStartupEnabled()) {
|
||||||
QFile::remove(getAutostartDesktopFilename());
|
QFile::remove(getAutostartDesktopFilename());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue