Skip to content

Simulator: GPU desktop hook for the start-locked login script - #189

Merged
henrikklee merged 3 commits into
mainfrom
simulator-gpu-hook
Nov 19, 2026
Merged

henrikklee merged 3 commits into
mainfrom
simulator-gpu-hook

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

The simulator's disk setup puts its GPU-desktop switch (/etc/omarchy-a/simulator-gpu) into omarchy-a's login script, keyed on exec /usr/bin/labwc -m. Since OrchardLinux/omarchy-a#81, where the session starts locked, the script ends in a restart loop after export OMARCHY_START_LOCKED=1 instead. New disks would then lose the GPU desktop, and with it the shell's GPU-only animations, or setup would stop with "no Labwc start to hook".

The hook now goes before whichever of the two lines the script has, so it works with released images and with #81.

Tested with GNU sed in the VM against both login scripts (main's and #81's): the switch lands right before Labwc's start in each, and both still parse.

The VM's GPU-desktop switch went in before `exec /usr/bin/labwc -m`, which
omarchy-a's login script no longer ends with once the session starts
locked (a restart loop follows its OMARCHY_START_LOCKED export). The hook
now goes before whichever of the two the script has, so new disks get the
GPU desktop with released images and the start-locked ones alike.

Assisted-by: LLM
Since Omarchy A starts its desktop from greetd's initial_session (no login
screen), greetd starts it once per boot and notes that in its runfile;
the bridge's plain `systemctl restart greetd` then showed greetd's
fallback, and the old desktop lived on in its abandoned session. The
bridge now stops greetd, ends the seat's sessions (kill-session: an
abandoned session's processes outlive terminate-session here), removes
the runfile and starts greetd: a new desktop with the chosen renderer,
at the lock screen as after a boot.

Assisted-by: LLM
@henrikklee
henrikklee merged commit 179689c into main Nov 19, 2026
11 checks passed
@henrikklee
henrikklee deleted the simulator-gpu-hook branch November 19, 2026 21:25
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