Skip to content

Commit c13d52e

Browse files
committed
revert XDG_DATA_HOME for testing
1 parent 6774458 commit c13d52e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lgsm/functions/check_steamcmd.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ fn_check_steamcmd(){
6666
fn_check_steamcmd_dir(){
6767
# Worksround that pre-installs the correct steam directories to ensure all packages use the correct Standard
6868
# https://github.com/ValveSoftware/steam-for-linux/issues/6976#issuecomment-610446347
69-
if [ ! -d "${XDG_DATA_HOME:-"${HOME}/.local/share"}" ]; then
70-
mkdir -p "${XDG_DATA_HOME:-"${HOME}/.local/share"}"
69+
if [ ! -d "${HOME}/.local/share" ]; then
70+
mkdir -p "${HOME}/.local/share"
7171
fi
7272

7373
if [ ! -d "${HOME}/.steam" ]; then
@@ -78,14 +78,14 @@ fn_check_steamcmd_dir(){
7878
if [ -d "${HOME}/.steam/root" ]; then
7979
rm "${HOME}/.steam/root"
8080
fi
81-
ln -s "${XDG_DATA_HOME:-"${HOME}/.local/share"}/Steam" "${HOME}/.steam/root"
81+
ln -s "${HOME}/.local/share/Steam" "${HOME}/.steam/root"
8282
fi
8383

8484
if [ ! -L "${HOME}/.steam/steam" ]; then
8585
if [ -d "${HOME}/.steam/steam" ]; then
8686
rm "${HOME}/.steam/steam"
8787
fi
88-
ln -s "${XDG_DATA_HOME:-"${HOME}/.local/share"}/Steam" "${HOME}/.steam/steam"
88+
ln -s "${HOME}/.local/share/Steam" "${HOME}/.steam/steam"
8989
fi
9090
}
9191

lgsm/functions/fix_arma3.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ local commandaction="Fix"
99
local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
1010

1111
# Fixes: 20150 Segmentation fault (core dumped) error.
12-
if [ ! -d "${XDG_DATA_HOME:-"${HOME}/.local/share"}/Arma 3" ]||[ ! -d "${XDG_DATA_HOME:-"${HOME}/.local/share"}/Arma 3 - Other Profiles" ]; then
12+
if [ ! -d "${HOME}/.local/share/Arma 3" ]||[ ! -d "${HOME}/.local/share/Arma 3 - Other Profiles" ]; then
1313
fixname="20150 Segmentation fault (core dumped)"
1414
fn_fix_msg_start
15-
mkdir -p "${XDG_DATA_HOME:-"${HOME}/.local/share"}/Arma 3 - Other Profiles"
15+
mkdir -p "${HOME}/.local/share/Arma 3 - Other Profiles"
1616
fn_fix_msg_end
1717
fi

0 commit comments

Comments
 (0)