This repository was archived by the owner on Nov 8, 2026. It is now read-only.
Repository navigation
wingpanel: KillMode=process so restarting the panel keeps its apps - #662
Merged
Merged
Conversation
Apps opened from the panel live in pantheon-wingpanel.service's cgroup; with the default control-group kill mode, any panel restart (including install-network-throughput.sh and activate-t3-panel.sh) also killed them, e.g. Messages and transmission-daemon. Same fix as the dock drop-in. Verified with a user drop-in: restarting the panel freed 1.6 GiB of stale heap and Messages and transmission-daemon kept running. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Apps opened from the panel (Applications menu, indicators) run inside
pantheon-wingpanel.service's cgroup. With the defaultKillMode=control-group, every panel restart kills them;install-network-throughput.shandactivate-t3-panel.shboth restart the panel. This is the same fix the dock already has (install-dock-drawers.shdrop-in).Found during the memory audit (#659): after 12 h the panel held 1.6 GiB of heap. It wasn't growing (0 MiB over 90 s), so it was a one-off high-water mark rather than a steady leak. Restarting it with a matching user drop-in (
~/.config/systemd/user/pantheon-wingpanel.service.d/keep-apps.conf) freed 1.6 GiB, and Messages and transmission-daemon kept running.The unit installs to
/usr/lib/systemd/userviainstall-pantheon-rust-compositor.sh, so it takes effect system-wide on the next install. The user drop-in covers this machine until then.🤖 Generated with Claude Code