Skip to content

omarchy-restart-shell: restart the shell in the Labwc session - #296

Open
johnbeatty wants to merge 2 commits into
OrchardLinux:mainfrom
johnbeatty:restart-shell-labwc
Open

johnbeatty wants to merge 2 commits into
OrchardLinux:mainfrom
johnbeatty:restart-shell-labwc

Conversation

@johnbeatty

Copy link
Copy Markdown

omarchy-restart-shell couldn't restart the shell on the tablet at all. Upstream's command asks Hyprland (hyprctl) whether the shell is ready and whether the session is locked, but the tablet runs Labwc. That mattered most after a shell died and left the screen locked with nothing that takes a tap.

The tablet's own desktop/shell/bin/omarchy-restart-shell:

  • gives the new shell Labwc's environment and display, so omarchy-shell and Settings find it;
  • runs it under the user's systemd (omarchy-shell.service), which polkit counts as the graphical session (NetworkManager refused a shell started from ssh);
  • starts it locked, like the session's first shell, so the PIN comes back after a shell that died while locked.

Tested by tests/test_restart_shell_labwc.py, and on an iPhone 7 Plus over ssh: twice in a row, the second replacing the first. Settings opened, and Wi-Fi switched off and on.

Goes well with the lock reload fix (lock-defers-shell-reload), but neither needs the other.

Upstream's command asks Hyprland (hyprctl) whether the shell is ready
and whether the session is locked; the tablet runs Labwc, so it could
not restart the shell at all, also not after the shell died and left
the screen locked with nothing that takes a tap.

The tablet's own version gives the new shell Labwc's environment and
its display, so omarchy-shell and Settings find it, and runs it under
the user's systemd (omarchy-shell.service), which polkit counts as the
graphical session: NetworkManager refused a shell started from ssh. It
starts locked, like the session's first shell, which brings the PIN
back after a shell that died while locked.

Tried on an iPhone 7 Plus over ssh: twice in a row, the second
replacing the first; Settings opened and Wi-Fi switched off and on.
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