Skip to content

Commit a610b15

Browse files
committed
scripts: flatpak: check .local directory for steam library
1 parent 30b6980 commit a610b15

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

scripts/flatpak/run.sh

100644100755
+9-5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
echo "Xash3D FWGS installed as Flatpak."
44

55
# TODO: detect by libraryfolders.vdf and installed apps
6-
HALFLIFESTEAMDIR="$HOME/.steam/steam/steamapps/common/Half-Life"
6+
HALFLIFESTEAMDIRS="$HOME/.local/share/Steam/steamapps/common/Half-Life $HOME/.steam/steam/steamapps/common/Half-Life"
77

8-
if [ -d "$HALFLIFESTEAMDIR" ]; then
9-
echo "Detected Half-Life installation in $HALFLIFESTEAMDIR, using as RoDir"
10-
export XASH3D_RODIR=$HALFLIFESTEAMDIR
11-
fi
8+
for i in $HALFLIFESTEAMDIRS; do
9+
# echo $i
10+
if [ -d "$i" ]; then
11+
echo "Detected Half-Life installation in $i, using as RoDir"
12+
export XASH3D_RODIR=$i
13+
break
14+
fi
15+
done
1216

1317
XASHDATADIR="$HOME/.xash/"
1418

0 commit comments

Comments
 (0)