Skip to content

Commit 0c70cc5

Browse files
committed
fix(desktop): Clean up desktop file creation, change big picture mode to autologin only. Enable start steam in big picture mode in Steam settings if you want the previous behavior.
1 parent f0a3b0b commit 0c70cc5

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

system_files/desktop/shared/usr/share/ublue-os/firstboot/yafti.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ screens:
4141
show_terminal: true
4242
package_manager: yafti.plugin.run
4343
groups:
44+
Enable Auto Login:
45+
description: Skip the login screen and boot straight to the desktop
46+
default: false
47+
packages:
48+
- Enable Auto Login: just --unstable enable-auto-login
4449
Greenlight:
4550
description: A utility for xCloud and xHome streaming
4651
default: false
@@ -62,11 +67,6 @@ screens:
6267
default: false
6368
packages:
6469
- Install Nix Package Support: sudo -A just --unstable install-nix
65-
Start Steam in Big Picture Mode:
66-
description: For HTPCs, start Steam in Big Picture Mode automatically at login.
67-
default: false
68-
packages:
69-
- Enable Big Picture Mode: just --unstable enable-big-picture
7070
amd-additions:
7171
source: yafti.screen.package
7272
values:

system_files/desktop/shared/usr/share/ublue-os/just/custom.just

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ install-bazzite-arch:
99
distrobox-enter -n bazzite-arch -- ' distrobox-export --app steam'
1010
distrobox-enter -n bazzite-arch -- ' distrobox-export --app lutris'
1111
distrobox-enter -n bazzite-arch -- ' distrobox-export --app protontricks'
12-
mkdir -p ~/.config/autostart/
13-
cp ~/.local/share/applications/bazzite-arch-steam.desktop ~/.config/autostart/bazzite-arch-steam.desktop
14-
sed -i 's@/usr/bin/bazzite-steam-runtime %U@/usr/bin/bazzite-steam-runtime -silent %U@g' ~/.config/autostart/bazzite-arch-steam.desktop
1512
mkdir -p $HOME/.steam
1613
distrobox-enter -n bazzite-arch -- ' distrobox-export --bin /usr/bin/steamcmd --export-path ~/.steam'
1714
mv $HOME/.steam/steamcmd $HOME/.steam/steamcmd.sh
@@ -52,23 +49,18 @@ install-nix:
5249
sudo rm -f /etc/systemd/system/nix-daemon.socket
5350
sudo cp $nix_systemd_file_location/lib/systemd/system/nix-daemon.service /etc/systemd/system/nix-daemon.service
5451
sudo cp $nix_systemd_file_location/lib/systemd/system/nix-daemon.socket /etc/systemd/system/nix-daemon.socket
55-
52+
5653
remove-nix:
5754
sudo /nix/nix-installer uninstall
5855

59-
enable-big-picture:
56+
enable-auto-login:
6057
#!/usr/bin/env bash
6158
source /etc/default/bazzite
6259
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
6360
systemctl enable --now gnome-autologin
6461
elif [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then
6562
systemctl enable --now plasma-autologin
6663
fi
67-
mkdir -p ~/.config/autostart/
68-
rm ~/.config/autostart/bazzite-arch-steam.desktop
69-
cp ~/.local/share/applications/bazzite-arch-steam.desktop ~/.config/autostart/bazzite-arch-steam.desktop
70-
sed -i 's@/usr/bin/bazzite-steam-runtime %U@/usr/bin/bazzite-steam-runtime -bigpicture %U@g' ~/.config/autostart/bazzite-arch-steam.desktop
71-
mv ~/.config/autostart/bazzite-arch-steam.desktop ~/.config/autostart/bazzite-arch-steam-bigpicture.desktop
7264

7365
get-greenlight:
7466
echo 'Retrieving Greenlight'

0 commit comments

Comments
 (0)