From 95ee64a2beb8be692f70ba1651329fc9e4d21e54 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 24 Mar 2026 13:08:57 +0200 Subject: [PATCH] add native steams --- etc/xdg/autostart/steam-bigpicture.desktop | 6 ++++++ etc/xdg/autostart/steam-tray.desktop | 6 ++++++ install | 8 +++++++- local/share/applications/steam-bigpicture.desktop | 1 + local/share/applications/steam-tray.desktop | 1 + 5 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 etc/xdg/autostart/steam-bigpicture.desktop create mode 100644 etc/xdg/autostart/steam-tray.desktop create mode 120000 local/share/applications/steam-bigpicture.desktop create mode 120000 local/share/applications/steam-tray.desktop diff --git a/etc/xdg/autostart/steam-bigpicture.desktop b/etc/xdg/autostart/steam-bigpicture.desktop new file mode 100644 index 00000000..b87799e7 --- /dev/null +++ b/etc/xdg/autostart/steam-bigpicture.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=SteamDeck TV +Exec=systemd-inhibit --what shutdown --who steam gamemoderun steam -tenfoot -steamdeck +Icon=com.valvesoftware.Steam +Type=Application +Hidden=false diff --git a/etc/xdg/autostart/steam-tray.desktop b/etc/xdg/autostart/steam-tray.desktop new file mode 100644 index 00000000..55afc65b --- /dev/null +++ b/etc/xdg/autostart/steam-tray.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=SteamDeck icon +Exec=systemd-inhibit --what shutdown --who steam steam -silent -steamdeck +Icon=com.valvesoftware.Steam +Type=Application +Hidden=false diff --git a/install b/install index 03c358ab..cd1ad510 100755 --- a/install +++ b/install @@ -194,9 +194,14 @@ if [ "$(id -u)" == "0" ]; then cp -v local/share/applications/{a-chromium,chromium-{apps,youtube-music,yle-areena,discord,gmail,gmessages,google-calendar,telegram,twitch,whatsapp,mtv-katsomo,radioplayer,ruutu}}.desktop /usr/local/share/applications/ fi # If Steam is installed, chances are these work - if [ -f /var/lib/flatpak/exports/bin/com.valvesoftware.Steam ]; then + if [ -f /usr/share/steam ]; then + cp -v local/share/applications/{steam-bigpicture,steam-tray}.desktop /usr/local/share/applications/ + elif [ -f /var/lib/flatpak/exports/bin/com.valvesoftware.Steam ]; then cp -v local/share/applications/{a-steam,com.valvesoftware.Steam,flatpak-steam-bigpicture,flatpak-steam-tray,com.heroicgameslauncher.hgl}.desktop /usr/local/share/applications/ fi + if [ -f /var/lib/flatpak/exports/bin/com.heroicgameslauncher.hgl ]; then + cp -v local/share/applications/com.heroicgameslauncher.hgl.desktop /usr/local/share/applications/ + fi if [ -f /var/lib/flatpak/exports/bin/org.briarproject.Briar ]; then cp -v local/share/applications/briar.desktop /usr/local/share/applications/ fi @@ -545,6 +550,7 @@ else ln -nsfv /etc/xdg/autostart/foot*.desktop $DESKTOP/ ln -nsfv /usr/local/share/applications/foot-ncdu.desktop $DESKTOP/ + ln -nsfv /usr/local/share/applications/steam-bigpicture.desktop $DESKTOP/ ln -nsfv /usr/local/share/applications/flatpak-steam-bigpicture.desktop $DESKTOP/ ln -nsfv /usr/local/share/applications/a-steam.desktop $DESKTOP/ ln -nsfv /usr/local/share/applications/com.heroicgameslauncher.hgl.desktop $DESKTOP/ diff --git a/local/share/applications/steam-bigpicture.desktop b/local/share/applications/steam-bigpicture.desktop new file mode 120000 index 00000000..a0a70282 --- /dev/null +++ b/local/share/applications/steam-bigpicture.desktop @@ -0,0 +1 @@ +../../../etc/xdg/autostart/steam-bigpicture.desktop \ No newline at end of file diff --git a/local/share/applications/steam-tray.desktop b/local/share/applications/steam-tray.desktop new file mode 120000 index 00000000..902ba48d --- /dev/null +++ b/local/share/applications/steam-tray.desktop @@ -0,0 +1 @@ +../../../etc/xdg/autostart/steam-tray.desktop \ No newline at end of file