From 1e370b8ab8f046ad786646896dcdbe9290047411 Mon Sep 17 00:00:00 2001 From: Chris Bednarski Date: Tue, 22 Jul 2025 17:26:51 -0700 Subject: [PATCH] Change StartupNotify to false StartupNotify causes KeepassXC to hang on startup until the notification timeout is reached, making the KeepassXC window unavailable in the application switcher (i.e. alt-tab) on various Linux distros. Fixes https://github.com/keepassxreboot/keepassxc/issues/6423 Fixes https://github.com/keepassxreboot/keepassxc/issues/11664 --- share/linux/org.keepassxc.KeePassXC.desktop.in | 2 +- src/gui/osutils/nixutils/NixUtils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/linux/org.keepassxc.KeePassXC.desktop.in b/share/linux/org.keepassxc.KeePassXC.desktop.in index c022b03f4..64b3c15ed 100644 --- a/share/linux/org.keepassxc.KeePassXC.desktop.in +++ b/share/linux/org.keepassxc.KeePassXC.desktop.in @@ -39,7 +39,7 @@ Exec=keepassxc %f TryExec=keepassxc Icon=@APP_ICON_NAME@ StartupWMClass=keepassxc -StartupNotify=true +StartupNotify=false Terminal=false Type=Application Version=1.5 diff --git a/src/gui/osutils/nixutils/NixUtils.cpp b/src/gui/osutils/nixutils/NixUtils.cpp index 30b7e21e4..225d6a05e 100644 --- a/src/gui/osutils/nixutils/NixUtils.cpp +++ b/src/gui/osutils/nixutils/NixUtils.cpp @@ -156,7 +156,7 @@ void NixUtils::setLaunchAtStartup(bool enable) << QStringLiteral("TryExec=") << executeablePathOrName << '\n' << QStringLiteral("Icon=") << QApplication::applicationName().toLower() << '\n' << QStringLiteral("StartupWMClass=keepassxc") << '\n' - << QStringLiteral("StartupNotify=true") << '\n' + << QStringLiteral("StartupNotify=false") << '\n' << QStringLiteral("Terminal=false") << '\n' << QStringLiteral("Type=Application") << '\n' << QStringLiteral("Version=1.0") << '\n'