From 0a3394edb1a7a049d6815424b8680c909c357f4c Mon Sep 17 00:00:00 2001 From: Botspot <54716352+Botspot@users.noreply.github.com> Date: Tue, 27 Feb 2024 02:41:16 -0600 Subject: [PATCH] steam: repackage deb to skip xterm dependency --- apps/Steam/install-64 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/Steam/install-64 b/apps/Steam/install-64 index 223bdd550c..cf58f5842f 100755 --- a/apps/Steam/install-64 +++ b/apps/Steam/install-64 @@ -26,17 +26,17 @@ if package_installed steamlink ; then sudo apt purge -y steamlink fi -#prevent lxterm dependency from becoming default terminal -default_terminal="$(readlink -f /usr/bin/x-terminal-emulator)" +#get steam deb and remove terminal dependencies from it, then package it back up +wget -O /tmp/steam_latest.deb "https://repo.steampowered.com/steam/archive/stable/steam_latest.deb" +dpkg-deb -x /tmp/steam_latest.deb /tmp/steam-deb +dpkg-deb -e /tmp/steam_latest.deb /tmp/steam-deb/DEBIAN +rm -f /tmp/steam_latest.deb +sed -i 's/xterm | gnome-terminal | konsole, //g' /tmp/steam-deb/DEBIAN/control +dpkg-deb -b /tmp/steam-deb /tmp/steam_latest.deb +rm -rf /tmp/steam-deb -echo "Installing steam_latest.deb" -install_packages https://repo.steampowered.com/steam/archive/stable/steam_latest.deb || exit 1 - -#check if terminal choice was changed after steam was installed -if [ ! -z "$default_terminal" ] && [ "$(readlink -f /usr/bin/x-terminal-emulator)" != "$default_terminal" ];then - #restore previous choice - sudo update-alternatives --set x-terminal-emulator "$default_terminal" -fi +install_packages /tmp/steam_latest.deb || exit 1 +rm -f /tmp/steam_latest.deb sudo mkdir -p /usr/local/bin /usr/local/share/applications # if a matching name binary is found in /usr/local/bin it takes priority over /usr/bin