Skip to content

Commit

Permalink
steam: repackage deb to skip xterm dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot committed Feb 27, 2024
1 parent 3977c0c commit 0a3394e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions apps/Steam/install-64
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a3394e

Please sign in to comment.