Repository navigation
Lock: no shell reload while locked, and none that locks - #295
Open
johnbeatty wants to merge 2 commits into
Open
johnbeatty wants to merge 2 commits into
johnbeatty wants to merge 2 commits into
Conversation
A reload, which a changed shell file starts (an update of the package), destroyed the session lock without unlocking it. The compositor takes that for a protocol error and disconnects the shell: under Labwc the screen stayed locked with nothing on it to unlock, and only a restart of the shell from outside brought the PIN back. Quickshell's file watching is now off while locked; after the unlock the shell reloads once if one of its files changed (by ctime: installed package files keep their build-time mtime). A reload also took the session's start lock again, so an update while the tablet was in use locked it. The start lock is now taken once per shell process; a shell started anew (a crash, a restart) still takes it. Tried on an iPhone 7 Plus: a file changed while locked held its reload until the unlock; reloads while unlocked left it unlocked.
johnbeatty
force-pushed
the
lock-defers-shell-reload
branch
from
December 4, 2026 20:07
66ca8f7 to
c78d49b
Compare
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes two problems with shell reloads and the lock screen.
Changes are in
desktop/shell/shell/plugins/lock/Service.qml, tested bytests/test_lock_holds_reloads.py.Tested on an iPhone 7 Plus: a file changed while locked held its reload until the unlock, and reloads while unlocked left it unlocked.