kwallet: proper session lifecycle + chrony/desktop fixes #32

Merged
obel1x merged 6 commits from unbrot/fedora-OEMDRV:main into main 2026-05-11 13:19:21 +02:00
Showing only changes of commit b32cc96ca0 - Show all commits
+6
View File
@@ -39,6 +39,12 @@ WALLETFILE="${WALLETNAME}.kwl"
WALLETPATH="${DECRYPTEDDATADIR}/kwallet" WALLETPATH="${DECRYPTEDDATADIR}/kwallet"
WALLETPATH_CFG="$SUDO_HOME/.local/share/kwalletd" WALLETPATH_CFG="$SUDO_HOME/.local/share/kwalletd"
# Stop kwalletd6-logon.service first so its ExecStop (umount) fires before we remount the wallet.
# Without this, ExecStop races with the remount below and can unmount the freshly mounted wallet.
_USER_UID=$(id -u "${SUDO_USER}")
XDG_RUNTIME_DIR="/run/user/${_USER_UID}" DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/${_USER_UID}/bus" \
sudo -u "${SUDO_USER}" systemctl --user stop kwalletd6-logon.service 2>/dev/null || true
# Stop the daemon anyway if running # Stop the daemon anyway if running
# kwallet and kwalletmanager are optional and only started when an app has been using them already # kwallet and kwalletmanager are optional and only started when an app has been using them already
WALLET_PID=$( pgrep -u $SUDO_USER kwalletd6 ) WALLET_PID=$( pgrep -u $SUDO_USER kwalletd6 )