Commit Graph

22 Commits

Author SHA1 Message Date
Daniel unbrot Pätzold 5e0f268962 kwallet: remove ExecStop, stop old unit in user_run.sh instead
ExecStop on the user service caused an unmount race: it fired
asynchronously after logout while the next login's install.sh had
already remounted the wallet, then unmounted it again leaving
kwalletd6 without its wallet directory.

install.sh already handles umount/remount at login start, so no
ExecStop is needed. On gocryptfs systems the wallet becomes
inaccessible at logout naturally when ~/data is unmounted.

user_run.sh now explicitly stops any leftover kwalletd6-logon unit
from a previous session before creating a new one, avoiding the
systemd-run unit-name-conflict failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 12:29:20 +02:00
Daniel unbrot Pätzold b32cc96ca0 kwallet: stop kwalletd6-logon.service before remounting wallet
ExecStop (umount) fires asynchronously ~26s after logout, by which
time a second login's install.sh has already remounted the wallet.
ExecStop then unmounts the fresh mount, leaving kwalletd6 without
the wallet directory.

Fix: stop kwalletd6-logon.service at the top of install.sh so its
ExecStop fires and drains before the remount, eliminating the race.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 12:01:08 +02:00
Daniel unbrot Pätzold 3429ffa48f kwallet: unmount bind mount cleanly on session logout
Switch kwalletd6-logon from --scope to a transient service with
RemainAfterExit=yes (kwalletd6 forks to background, so the service
must stay active after the main process exits). ExecStop runs
'sudo umount -l' to detach the wallet bind mount before gocryptfs
unmounts ~/data (Before=gocryptfs-home.service ordering).

install.sh adds a per-user sudoers drop-in so the user service
can call umount as root without a password.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 11:07:01 +02:00
Daniel unbrot Pätzold 84527d6384 client_software cosmetic changes 2026-05-08 12:07:54 +02:00
unbrot a9fc6fda72 Wallet: New install wrote new rc at the second logon 2026-04-25 13:28:19 +02:00
Daniel Pätzold 5cd143d8f0 Kwallet: Fix setting up default walletrc 2026-04-23 12:32:55 +02:00
Daniel Pätzold e1dd5cc62a Kwallet: fixed copy kwalletrc 2026-04-23 12:09:15 +02:00
Daniel Pätzold df498ca45a Wallet: Repeat Check for Wallet with delay 2026-04-12 19:18:34 +02:00
Daniel Pätzold df29674158 Wallet: Disable if not KDE Window-Manager 2026-04-12 11:21:41 +02:00
Daniel Pätzold 1cee4f82f4 Kwallet: Split User_Run from install 2026-04-07 15:06:57 +02:00
Daniel Pätzold af1bcc8763 Wallet: Increased delay after daemon start 2026-03-31 22:10:59 +02:00
Daniel Pätzold e96930d16e wallet: reorder services to stop to make it work even when wallet is not startet after logon 2026-03-31 20:00:33 +02:00
Daniel Pätzold 43d2773ea9 Wallet: Fixed description 2026-03-31 19:39:30 +02:00
Daniel Pätzold fd93f4d2d4 Kwallet: Kill ksecretsd too 2026-03-31 19:32:32 +02:00
Daniel Pätzold 810e074fc8 Wallet: Stop Manager, no reconfigure 2026-03-29 14:40:39 +02:00
Daniel Pätzold df0a792c74 kWallet: Bug stop service, umount checks 2026-03-29 14:12:51 +02:00
Daniel Pätzold ffc0b63460 KWallet: No Migration, use predefined wallets 2026-03-29 13:42:35 +02:00
Daniel Pätzold 3d05715415 KWallet: No Migration of old Wallet, instead use predefined ones 2026-03-29 13:29:31 +02:00
Daniel Pätzold 29e6f3fd60 KWallet: Added info of Migration 2026-03-29 13:11:00 +02:00
Daniel Pätzold 79892294c5 KWallet: Set rights of config file 2026-03-29 12:58:43 +02:00
Daniel Pätzold 3583d50cb9 Kwallet: Create Folder for Wallet if not there 2026-03-29 12:46:19 +02:00
Daniel Pätzold 670f21526c KWallet-Service Setup introduced 2026-03-29 12:39:36 +02:00