Logout from menu doesn't end session — SDDM uses non-uwsm session
Description
The logout option from the Omarchy menu closes all windows but does not actually end the Wayland session. The user is left on an empty desktop.
Root Cause
SDDM's autologin config (/etc/sddm.conf.d/00-autologin.conf) sets Session=hyprland.desktop, which starts Hyprland directly via the start-hyprland watchdog — not through uwsm.
The logout script (omarchy-system-logout) runs uwsm stop to terminate the session, but since uwsm is not managing the session, it silently fails:
uwsm[24305]: Stopping compositor...
uwsm[24305]: Compositor is not running.
The window-close and OSD steps still execute, but the session never ends.
Steps to Reproduce
- Boot into Omarchy with SDDM autologin
- Open the Omarchy menu (Super+Escape)
- Navigate to System > Logout
- All windows close but the session remains active
Expected Behavior
The session should end and return to the SDDM greeter.
Fix
Change the session in /etc/sddm.conf.d/00-autologin.conf from:
Session=hyprland.desktop
to:
Session=hyprland-uwsm.desktop
The hyprland-uwsm.desktop file already exists in /usr/share/wayland-sessions/ and uses uwsm start -e -D Hyprland hyprland.desktop.
System Details
- Omarchy: 4.0.1-1
- uwsm: 0.26.7
- Hyprland: 0.56.2
- Distro: Omarchy on Arch Linux
- Display Manager: SDDM
Thanks for the detailed report. The mechanism you describe is right: omarchy-system-logout ends the session with uwsm stop, and in a Hyprland session uwsm did not start, that has nothing to stop. It reports "Compositor is not running" and exits successfully, so the windows close and the session stays.
What doesn't match a stock install is the SDDM config. No Omarchy install, upgrade or migration, on any branch or in the repository's history, writes /etc/sddm.conf.d/00-autologin.conf or an autologin with Session=hyprland.desktop. The ISO install (bin/omarchy-provision-owner, already the case in 4.0.1) and the upgrade to 4.x (bin/omarchy-upgrade-to-quattro) write /etc/sddm.conf.d/autologin.conf with Session=omarchy.desktop, which runs uwsm start -g -1 -e -D Hyprland hyprland.desktop. The hyprland.desktop in that line is the compositor uwsm launches; it does not bypass uwsm. I checked this on a fresh worker built from the Omarchy ISO: /etc/sddm.conf.d/ holds 10-theme.conf, 10-wayland.conf, 99-omarchy-login.conf and autologin.conf (Session=omarchy.desktop), there is no 00-autologin.conf, and Hyprland runs as [email protected] under uwsm. I did not test logout on that worker, because the session in your report is not one it runs.
The answer that decides this: how was this machine installed, and do you know where 00-autologin.conf came from? For example: the Omarchy ISO, Omarchy on top of another Arch-based distribution, or a file you or another tool added. If you also have /etc/sddm.conf.d/autologin.conf, please post its contents.
Codex Medium reviewed this separately and reached the same conclusion: nothing in Omarchy writes that file or selects a non-uwsm session on a stock install. Its independence from this review is not guaranteed. #12233 reports a different logout failure in a session uwsm does manage, and is tracked there. Next, the maintainer decides what happens to this issue.