r/voidlinux • u/DistantOrb • Jul 30 '26
Helium browser session getting corrupted on shutdown (Void + KDE Plasma/SDDM, X11) — sddm force-stop timeout?
Hey everyone, hoping someone here has run into this or has an idea of where else to look.
Setup: Void, KDE Plasma with SDDM, X11 session (not Wayland). Using a Chromium-based browser (Helium, as an AppImage).
Two things happen after shutdown/reboot:
- Every once in a while, completely random, I come back to the browser fully logged out of everything. No pattern I've been able to pin down.
- Much more consistently, I get the "restore pages" prompt instead of my tabs coming back automatically, even with "continue where you left off" enabled. Checking the profile,
exit_typeisCrashed, so something's killing the browser without a clean exit.
What I found digging into it: on sudo poweroff, the browser, Xorg, and even an unrelated script I had running in the background all die at the exact same instant. Traced it to /etc/runit/shutdown.d/10-sv-stop.sh, which force-stops all services with the default 7s timeout, killing sddm and taking the whole session down in one shot.
I tried adding a script before it (sv -w 20 force-stop sddm, similar to a fix suggested in void-runit#133) to give the session more time to close on its own. Didn't help, still getting Crashed after shutdown.
So I'm stuck on where else to look. Is sddm even the right thing to target here, or is there another layer (X server teardown, elogind, something else) tearing the session down before that, which sv force-stop wouldn't touch at all? Any pointers appreciated, happy to share more details if it helps.
3
u/Jealous_Shower6777 Jul 30 '26
Have you tried shutdown -h? I’m not sure how gracious poweroff is
3
u/weaklingoverlord Jul 31 '26
Why not
- manually close the browser session, and then
- poweroff/reboot?
1
u/legz_cfc Jul 31 '26
Just guessing, but how about adding 'pkill -15 helium' to /etc/rc.shutdown ? You can test the command on its own w/out rebooting.
1
u/synthsandcats Aug 01 '26
I use Helium as an appimage with X11/Xorg, SDDM, and LXQT as my DE. but I have none of the issues you're having. Hope you find out and solve your problem soon.
1
u/[deleted] Jul 31 '26
[removed] — view removed comment