Files
packages/anda/misc/extest/override_steam_desktop_file.sh
T
Raboneko 7c528e885e add: extest (#1908) (#1926)
Co-authored-by: madomado <madonuko@outlook.com>
(cherry picked from commit f59908b235)

Co-authored-by: Cappy Ishihara <cappy@cappuchino.xyz>
2024-08-16 00:16:38 +08:00

13 lines
397 B
Bash
Executable File

#!/bin/bash -x
EXTEST="/usr/lib/extest/libextest.so"
STEAM_DESKTOP_FILE="/usr/share/applications/steam.desktop"
if ! [ -f $STEAM_DESKTOP_FILE ]; then
echo "Could not find Steam's desktop file, is XDG_DATA_DIRS set properly?"
exit 1
fi
sed -i "s,Exec=/usr/bin/steam,Exec=env LD_PRELOAD=$EXTEST /usr/bin/steam," $STEAM_DESKTOP_FILE
echo $STEAM_DESKTOP_FILE
echo "Extest has been set up, enjoy!"