kwallet: treat exit code 1 as success in kwalletd6-logon.service

kwalletd6 exits with code 1 when the Wayland compositor shuts down
during logout. Without SuccessExitStatus=1, the service is marked
failed and ExecStop (the bind mount umount) never runs. Treating
exit code 1 as success keeps the service in active-exited state so
systemd fires ExecStop cleanly on session end.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Daniel unbrot Pätzold
2026-05-11 11:49:12 +02:00
parent 3429ffa48f
commit 5b13ea7372
+1
View File
@@ -21,6 +21,7 @@ fi
WALLETPATH_CFG="${HOME}/.local/share/kwalletd" WALLETPATH_CFG="${HOME}/.local/share/kwalletd"
systemd-run --user --unit=kwalletd6-logon \ systemd-run --user --unit=kwalletd6-logon \
--property=RemainAfterExit=yes \ --property=RemainAfterExit=yes \
--property=SuccessExitStatus=1 \
--property=Before=gocryptfs-home.service \ --property=Before=gocryptfs-home.service \
--property="ExecStop=/usr/bin/sudo /usr/bin/umount -l ${WALLETPATH_CFG}" \ --property="ExecStop=/usr/bin/sudo /usr/bin/umount -l ${WALLETPATH_CFG}" \
kwalletd6 >${TEMPDIR}/kwalletd6.log 2>&1 & kwalletd6 >${TEMPDIR}/kwalletd6.log 2>&1 &