1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01:00

chore: steam deck debugging

This commit is contained in:
aclist 2023-02-04 05:49:05 +09:00
parent 6caaa231de
commit f08917de0c

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -o pipefail set -o pipefail
version=3.3.0-rc.7 version=3.3.0-rc.8
aid=221100 aid=221100
game="dayz" game="dayz"
@ -989,8 +989,10 @@ set_header(){
sel=$(cat $tmp | $steamsafe_zenity $sd_res --list $cols --title="DZGUI" --text="DZGUI $version | Mode: $mode | Branch: $branch | Mods: $install_mode | Fav: $fav_label" \ sel=$(cat $tmp | $steamsafe_zenity $sd_res --list $cols --title="DZGUI" --text="DZGUI $version | Mode: $mode | Branch: $branch | Mods: $install_mode | Fav: $fav_label" \
--separator="$separator" --print-column=2,6 2>/dev/null) --separator="$separator" --print-column=2,6 2>/dev/null)
elif [[ $1 == "main_menu" ]]; then elif [[ $1 == "main_menu" ]]; then
echo "entered header" >> /tmp/dzgui.log
sel=$($steamsafe_zenity $sd_res --list --title="DZGUI" --text="${news}DZGUI $version | Mode: $mode | Branch: $branch | Mods: $install_mode | Fav: $fav_label" \ sel=$($steamsafe_zenity $sd_res --list --title="DZGUI" --text="${news}DZGUI $version | Mode: $mode | Branch: $branch | Mods: $install_mode | Fav: $fav_label" \
--cancel-label="Exit" --ok-label="Select" --column="Select launch option" --hide-header "${items[@]}" 2>/dev/null) --cancel-label="Exit" --ok-label="Select" --column="Select launch option" --hide-header "${items[@]}" 2>/tmp/dzgui.log)
echo "sel was $sel" >> /tmp/dzgui.log
fi fi
} }
toggle_branch(){ toggle_branch(){
@ -1812,6 +1814,10 @@ steam_deps(){
steam_cmd="flatpak run com.valvesoftware.Steam" steam_cmd="flatpak run com.valvesoftware.Steam"
fi fi
} }
dbl(){
t=$(date "+%F %T")
printf "[%s] %s\n" "$t" "$1"
}
initial_setup(){ initial_setup(){
echo "# Initial setup" echo "# Initial setup"
run_depcheck run_depcheck
@ -1829,6 +1835,7 @@ initial_setup(){
echo "100" echo "100"
} }
main(){ main(){
> /tmp/dzgui.log
echo "setting lockfile" >> /tmp/dzgui.log echo "setting lockfile" >> /tmp/dzgui.log
lock lock
initial_setup > >($steamsafe_zenity --pulsate --progress --auto-close --title="DZGUI" --no-cancel --width=500 2>/dev/null) initial_setup > >($steamsafe_zenity --pulsate --progress --auto-close --title="DZGUI" --no-cancel --width=500 2>/dev/null)