Add startplasma-steamos-oneshot

This commit is contained in:
Sōon Yoru 2025-01-03 05:53:49 -03:00
parent 867ad51afc
commit 3e601e5762
Signed by: yoru
GPG key ID: B63039394990CD72
2 changed files with 16 additions and 0 deletions

View file

@ -87,6 +87,7 @@ chsh -s /usr/bin/fish deck
install --needed xfce4 network-manager-applet nm-connection-editor xfce4-eyes-plugin xfce4-sensors-plugin thunar-archive-plugin thunar-volman xfce4-screenshooter xfce4-taskmanager gnome-software gvfs mousepad blueman gnome-calculator ffmpegthumbnailer ristretto engrampa
cp -fv xfce4-steamos-oneshot.desktop /usr/share/xsessions/
cp -fv startplasma-steamos-oneshot /usr/bin/
cp -fv steamos-session-select /usr/bin/
cp -fv steam-jupiter /usr/bin/

15
startplasma-steamos-oneshot Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
set -e
die() { echo >&2 "!! $*"; exit 1; }
/usr/bin/steamos-session-select gamescope --no-restart
# Add back portals removed by gamescope
systemctl --user set-environment XDG_DESKTOP_PORTAL_DIR=/usr/share/xdg-desktop-portal/portals
# Update environment
dbus-update-activation-environment --systemd DESKTOP_SESSION `env | grep ^XDG_ | cut -d = -f 1`
exec $@