# What the desktop is made of, started once labwc is up. Everything logs into the session log. # With ~/.steamdeck-desktop-debug present, the panel and the file manager also log what they # say to the compositor about their windows (shell, layer, output), capped so it stays readable. run() { local tag=$1; shift if [ -f "$HOME/.steamdeck-desktop-debug" ]; then # Everything it says goes to ~/.cache/steamdeck/.log; the window-related protocol # traffic also goes into the session log, capped. mkdir -p "$HOME/.cache/steamdeck" WAYLAND_DEBUG=1 "$@" 2>&1 | tee "$HOME/.cache/steamdeck/$tag.log" | awk -v t="[$tag]" '!/^\[[0-9:.]+\] +\{/ || (c<120 && /layer_s|xdg_toplevel|fullscreen|wl_output|xdg_output|configure\(/) {print t, $0; c++; fflush()}' & else "$@" 2>&1 | sed "s/^/[$tag] /" & fi } # The output at the app's real size, in case rc.xml's mode did not take. [ -n "${BL_WIDTH:-}" ] && wlr-randr --output WL-1 --custom-mode "${BL_WIDTH}x${BL_HEIGHT}" 2>&1 | sed 's/^/[wlr-randr] /' swaybg -m fill -i /usr/share/backgrounds/steamdeck.png & # Desktop icons (pcmanfm-qt manages the desktop surface) and the panel with the app menu. run pcmanfm-qt pcmanfm-qt --desktop --profile lxqt run lxqt-panel lxqt-panel /usr/lib/xdg-desktop-portal-wlr >/dev/null 2>&1 &