mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-29 06:48:26 +00:00
7c528e885e
Co-authored-by: madomado <madonuko@outlook.com>
(cherry picked from commit f59908b235)
Co-authored-by: Cappy Ishihara <cappy@cappuchino.xyz>
13 lines
397 B
Bash
Executable File
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!" |