mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
fix: move debug file location
This commit is contained in:
parent
116fd23a67
commit
ab3a192149
1 changed files with 12 additions and 12 deletions
24
dzgui.sh
24
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=3.2.12
|
version=3.2.13
|
||||||
|
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
|
@ -228,17 +228,17 @@ freedesktop_dirs(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
find_library_folder(){
|
find_library_folder(){
|
||||||
echo "ENTERED: ${FUNCNAME[0]}" >> $config_path/debug.log
|
echo "ENTERED: ${FUNCNAME[0]}" >> /tmp/debug.log
|
||||||
echo "RECEIVED ARG: $1" >> $config_path/debug.log
|
echo "RECEIVED ARG: $1" >> /tmp/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" >> /tmp/debug.log
|
||||||
}
|
}
|
||||||
file_picker(){
|
file_picker(){
|
||||||
echo "${FUNCNAME[0]}" >> $config_path/debug.log
|
echo "${FUNCNAME[0]}" >> /tmp/debug.log
|
||||||
local path=$($steamsafe_zenity --file-selection --directory 2>/dev/null)
|
local path=$($steamsafe_zenity --file-selection --directory 2>/dev/null)
|
||||||
echo "FILE PICKER PATH RESOLVED TO: $path" >> $config_path/debug.log
|
echo "FILE PICKER PATH RESOLVED TO: $path" >> /tmp/debug.log
|
||||||
if [[ -z "$path" ]]; then
|
if [[ -z "$path" ]]; then
|
||||||
echo "PATH WAS EMPTY" >> $config_path/debug.log
|
echo "PATH WAS EMPTY" >> /tmp/debug.log
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
default_steam_path="$path"
|
default_steam_path="$path"
|
||||||
|
@ -267,14 +267,14 @@ create_config(){
|
||||||
warn "Invalid BM API key"
|
warn "Invalid BM API key"
|
||||||
else
|
else
|
||||||
while true; do
|
while true; do
|
||||||
echo "STEAMSAFEZENITY: $steamsafe_zenity" >> $config_path/debug.log
|
echo "STEAMSAFEZENITY: $steamsafe_zenity" >> /tmp/debug.log
|
||||||
find_default_path
|
find_default_path
|
||||||
find_library_folder "$default_steam_path"
|
find_library_folder "$default_steam_path"
|
||||||
if [[ -z $steam_path ]]; then
|
if [[ -z $steam_path ]]; then
|
||||||
echo "STEAM PATH WAS EMPTY" >> $config_path/debug.log
|
echo "STEAM PATH WAS EMPTY" >> /tmp/debug.log
|
||||||
zenity --question --text="DayZ not found or not installed at the chosen path." --ok-label="Choose path manually" --cancel-label="Exit"
|
zenity --question --text="DayZ not found or not installed at the chosen path." --ok-label="Choose path manually" --cancel-label="Exit"
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
echo "USER SELECTED FILE PICKER" >> $config_path/debug.log
|
echo "USER SELECTED FILE PICKER" >> /tmp/debug.log
|
||||||
file_picker
|
file_picker
|
||||||
else
|
else
|
||||||
exit
|
exit
|
||||||
|
@ -1065,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" >> /tmp/debug.log
|
||||||
case "$res" in
|
case "$res" in
|
||||||
*auto*) discover ;;
|
*auto*) discover ;;
|
||||||
*manual*)
|
*manual*)
|
||||||
|
@ -1074,7 +1074,7 @@ find_default_path(){
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "FOUND DEFAULT PATH AT: $default_steam_path" >> $config_path/debug.log
|
echo "FOUND DEFAULT PATH AT: $default_steam_path" >> /tmp/debug.log
|
||||||
}
|
}
|
||||||
popup(){
|
popup(){
|
||||||
pop(){
|
pop(){
|
||||||
|
|
Loading…
Reference in a new issue