Add startplasma-steamos-oneshot
This commit is contained in:
parent
867ad51afc
commit
3e601e5762
2 changed files with 16 additions and 0 deletions
|
@ -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
15
startplasma-steamos-oneshot
Executable 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 $@
|
Loading…
Add table
Reference in a new issue