Skip to content

Lock: no shell reload while locked, and none that locks - #295

Open
johnbeatty wants to merge 2 commits into
OrchardLinux:mainfrom
johnbeatty:lock-defers-shell-reload
Open

johnbeatty wants to merge 2 commits into
OrchardLinux:mainfrom
johnbeatty:lock-defers-shell-reload

Conversation

@johnbeatty

Copy link
Copy Markdown

Fixes two problems with shell reloads and the lock screen.

  • A reload while locked left the screen locked with no way to unlock it. A changed shell file, for example from a package update, made the shell reload and destroy its session lock without unlocking it. Labwc treats that as a protocol error and disconnects the shell, so the screen stayed locked with nothing on it, until the shell was restarted from outside. Quickshell no longer watches its files while locked. After the unlock, the shell reloads once if one of its files changed. It checks ctime, because installed package files keep their build-time mtime.
  • A reload locked a tablet that was in use. Each reload took the session's start lock again. The start lock is now taken once per shell process; a new shell (after a crash or a restart) still takes it.

Changes are in desktop/shell/shell/plugins/lock/Service.qml, tested by tests/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.

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
johnbeatty force-pushed the lock-defers-shell-reload branch from 66ca8f7 to c78d49b Compare December 4, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant