mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
fix: file picker logic
This commit is contained in:
parent
adda3767c2
commit
116fd23a67
1 changed files with 5 additions and 4 deletions
9
dzgui.sh
9
dzgui.sh
|
@ -228,8 +228,8 @@ freedesktop_dirs(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
find_library_folder(){
|
find_library_folder(){
|
||||||
echo "${FUNCNAME[0]}" >> $config_path/debug.log
|
echo "ENTERED: ${FUNCNAME[0]}" >> $config_path/debug.log
|
||||||
echo "RECEIVED ARG $1" >> $config_path/debug.log
|
echo "RECEIVED ARG: $1" >> $config_path/debug.log
|
||||||
steam_path=$(python3 "$helpers_path/vdf2json.py" -i "$1/steamapps/libraryfolders.vdf" | jq -r '.libraryfolders[]|select(.apps|has("221100")).path')
|
steam_path=$(python3 "$helpers_path/vdf2json.py" -i "$1/steamapps/libraryfolders.vdf" | jq -r '.libraryfolders[]|select(.apps|has("221100")).path')
|
||||||
echo "STEAM PATH RESOLVED TO: $steam_path" >> $config_path/debug.log
|
echo "STEAM PATH RESOLVED TO: $steam_path" >> $config_path/debug.log
|
||||||
}
|
}
|
||||||
|
@ -1046,6 +1046,7 @@ console_dl(){
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
find_default_path(){
|
find_default_path(){
|
||||||
|
echo "ENTER: ${FUNCNAME[0]}" >> $config/debug.log
|
||||||
discover(){
|
discover(){
|
||||||
echo "# Searching for Steam"
|
echo "# Searching for Steam"
|
||||||
default_steam_path=$(find / -type d \( -path "/proc" -o -path "*/timeshift" -o -path "$HOME/.var" -o -path \
|
default_steam_path=$(find / -type d \( -path "/proc" -o -path "*/timeshift" -o -path "$HOME/.var" -o -path \
|
||||||
|
@ -1064,7 +1065,7 @@ find_default_path(){
|
||||||
default_steam_path="$HOME/.steam/steam"
|
default_steam_path="$HOME/.steam/steam"
|
||||||
else
|
else
|
||||||
local res=$(echo -e "Let DZGUI auto-discover Steam path (accurate, slower)\nSelect the Steam path manually (less accurate, faster)" | $steamsafe_zenity --list --column="Choice" --title=DZGUI --hide-header --text="Steam is not installed in a standard location." $sd_res)
|
local res=$(echo -e "Let DZGUI auto-discover Steam path (accurate, slower)\nSelect the Steam path manually (less accurate, faster)" | $steamsafe_zenity --list --column="Choice" --title=DZGUI --hide-header --text="Steam is not installed in a standard location." $sd_res)
|
||||||
echo "USER CHOSE $res" >> $config_path/debug.log
|
echo "USER CHOSE: $res" >> $config_path/debug.log
|
||||||
case "$res" in
|
case "$res" in
|
||||||
*auto*) discover ;;
|
*auto*) discover ;;
|
||||||
*manual*)
|
*manual*)
|
||||||
|
@ -1072,8 +1073,8 @@ find_default_path(){
|
||||||
file_picker ;;
|
file_picker ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
echo "FOUND DEFAULT PATH AT $default_steam_path" >> $config_path/debug.log
|
|
||||||
fi
|
fi
|
||||||
|
echo "FOUND DEFAULT PATH AT: $default_steam_path" >> $config_path/debug.log
|
||||||
}
|
}
|
||||||
popup(){
|
popup(){
|
||||||
pop(){
|
pop(){
|
||||||
|
|
Loading…
Reference in a new issue