From ae20ee61be12efa9465de2baf7611d2ddf9d4f5c Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Fri, 22 Jan 2021 22:29:14 +0800 Subject: [PATCH] Make KeePassXC start after the system tray is available on LXQt --- src/gui/osutils/nixutils/NixUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/osutils/nixutils/NixUtils.cpp b/src/gui/osutils/nixutils/NixUtils.cpp index eacb20060..9f147c59e 100644 --- a/src/gui/osutils/nixutils/NixUtils.cpp +++ b/src/gui/osutils/nixutils/NixUtils.cpp @@ -120,7 +120,8 @@ void NixUtils::setLaunchAtStartup(bool enable) << QStringLiteral("MimeType=application/x-keepass2;") << '\n' << QStringLiteral("X-GNOME-Autostart-enabled=true") << '\n' << QStringLiteral("X-GNOME-Autostart-Delay=2") << '\n' - << QStringLiteral("X-KDE-autostart-after=panel") << endl; + << QStringLiteral("X-KDE-autostart-after=panel") << '\n' + << QStringLiteral("X-LXQt-Need-Tray=true") << endl; desktopFile.close(); } else if (isLaunchAtStartupEnabled()) { QFile::remove(getAutostartDesktopFilename());