1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-04-05 20:13:00 +02:00

Make freedesktop settings SD only

This commit is contained in:
aclist 2022-08-06 05:07:06 +09:00
parent bf5ecc7462
commit af0448ac15

View file

@ -171,9 +171,7 @@ freedesktop_dirs(){
curl -s "$img_url/$i" > "$HOME/local/.share/dzgui/$i" curl -s "$img_url/$i" > "$HOME/local/.share/dzgui/$i"
done done
write_desktop_file > "$freedesktop_path/dzgui.desktop" write_desktop_file > "$freedesktop_path/dzgui.desktop"
if [[ $is_steam_deck -eq 1 ]]; then write_desktop_file > "$HOME/Desktop/dzgui.desktop"
write_desktop_file > "$HOME/Desktop/dzgui.desktop"
fi
} }
guess_path(){ guess_path(){
echo "# Checking for default DayZ path" echo "# Checking for default DayZ path"
@ -763,7 +761,7 @@ merge_config(){
} }
download_new_version(){ download_new_version(){
freedesktop_dirs [[ $is_steam_deck -eq 1 ]] && freedesktop_dirs
source_script=$(realpath "$0") source_script=$(realpath "$0")
source_dir=$(dirname "$source_script") source_dir=$(dirname "$source_script")
mv $source_script $source_script.old mv $source_script $source_script.old