Add breadgreet session picker for installed Wayland sessions

List .desktop sessions from the existing scan, pre-select bos when
present (else the first entry), and pass the chosen Exec= argv to
greetd StartSession.
This commit is contained in:
Breadway 2026-08-15 23:55:32 +08:00
parent 80caedc7fd
commit 495fe1aaad
6 changed files with 151 additions and 50 deletions

View file

@ -20,7 +20,8 @@ family = "Varela Round"
# Directories scanned for .desktop session entries, in order.
wayland_dirs = ["/usr/share/wayland-sessions"]
xsessions_dirs = ["/usr/share/xsessions"]
# .desktop file stem (without extension) to auto-select. Falls back to the
# first entry found if this isn't present. v1 has no session picker UI —
# BOS only ships one session (Hyprland) today.
default = "hyprland"
# .desktop file stem (without extension) pre-selected in the picker.
# Falls back to the first entry found if this isn't present. BOS ships
# bos.desktop (Exec=bos-session); leaving this as "bos" is what the ISO
# config expects so Hyprland's own hyprland.desktop is not picked first.
default = "bos"