Merge pull request #26 from theupriser/fix/install-fallback-cec-steam-machine-only
Sync git.upriser.nl mirror / sync (push) Skipped

steamify-install: fallback selection only turns on HDMI-CEC on a Steam Machine
This commit is contained in:
theupriser authored and GitHub committed 2026-10-14 11:06:40 +02:00
commit 146f1f0c7c
1 file changed
+9 -3
@@ -9,9 +9,15 @@
# takes the last matching rule, and a later %wheel rule would ask again. Never fails the install: a # takes the last matching rule, and a later %wheel rule would ask again. Never fails the install: a
# problem leaves the log and Steamify can be run again from the desktop. # problem leaves the log and Steamify can be run again from the desktop.
root="$1" user="$2" choice="${3:-}" root="$1" user="$2" choice="${3:-}"
# Not filled in by Calamares (empty, or the literal ${gs[...]}): the page's # Not filled in by Calamares (empty, or the literal ${gs[...]}): the page's default. HDMI-CEC and the
# default, everything on. # Steam Machine items are ticked there only on a Steam Machine (Steamify's detect_valve_fremont).
[[ -z "$choice" || "$choice" == *'${'* ]] && choice=gaming,theme,glyphs,single,launcher,notify,vram,cec,machine,poweroff if [[ -z "$choice" || "$choice" == *'${'* ]]; then
choice=gaming,theme,glyphs,single,launcher,notify,vram
vendor="$(cat /sys/class/dmi/id/sys_vendor 2>/dev/null)" product="$(cat /sys/class/dmi/id/product_name 2>/dev/null)"
if [[ "$vendor" == Valve && "$product" == Fremont ]] || [[ "$vendor" == OEM && "$product" == F7F ]]; then
choice+=,cec,machine,poweroff
fi
fi
boot=gamescope options="" boot=gamescope options=""
for id in ${choice//,/ }; do for id in ${choice//,/ }; do
case "$id" in case "$id" in