From 3190f81ca2f3d416ffc9efe475e7f4dc7791eeb5 Mon Sep 17 00:00:00 2001 From: RJ Trujillo Date: Tue, 8 Aug 2023 11:25:53 -0600 Subject: [PATCH] fix(deck): Autostart Steam using desktop shortcut rather than firstboot launcher (#121) This would forcefully open Steam every boot no matter whether or not users opted out of it in Steam --- Containerfile | 2 ++ .../usr/share/ublue-os/firstboot/launcher/autostart.sh | 7 ------- 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100755 system_files/deck/shared/usr/share/ublue-os/firstboot/launcher/autostart.sh diff --git a/Containerfile b/Containerfile index 0e4cdb9e..c7e6244d 100644 --- a/Containerfile +++ b/Containerfile @@ -126,6 +126,8 @@ RUN rm /usr/share/applications/shredder.desktop && \ ln -s "/usr/share/ublue-os/firstboot/launcher/login-profile.sh" \ "/usr/etc/profile.d/ublue-firstboot.sh" && \ cp "/usr/share/ublue-os/firstboot/yafti.yml" "/etc/yafti.yml" && \ + mkdir -p "/etc/xdg/autostart" && \ + cp "/usr/share/applications/steam.desktop" "/etc/xdg/autostart" && \ pip install --prefix=/usr yafti && \ sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_ublue-os-akmods.repo && \ sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_ublue-os-distrobox-git.repo && \ diff --git a/system_files/deck/shared/usr/share/ublue-os/firstboot/launcher/autostart.sh b/system_files/deck/shared/usr/share/ublue-os/firstboot/launcher/autostart.sh deleted file mode 100755 index e595ed30..00000000 --- a/system_files/deck/shared/usr/share/ublue-os/firstboot/launcher/autostart.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -# Simply launches the "yafti" GUI with the uBlue image's configuration. -/usr/bin/yafti /usr/share/ublue-os/firstboot/yafti.yml - -# Open Steam so that it can update -/usr/bin/steam