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

Alternate exit process for Steam Deck

This commit is contained in:
aclist 2022-10-08 14:28:24 +09:00
parent 18902ba215
commit 01b2c12a6f
2 changed files with 8 additions and 1 deletions

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -o pipefail set -o pipefail
version=2.8.0-rc.10 version=2.8.0-rc.11
aid=221100 aid=221100
game="dayz" game="dayz"

View file

@ -290,6 +290,13 @@ return_to_dzg(){
case $key in case $key in
*) exit 1 ;; *) exit 1 ;;
esac esac
elif [[ $dist == "steamos" ]]; then
pass "All OK. Returning to DZGUI."
for((i=3;i>0;i--)); do
printf "Returning in %i\r" "$i"
sleep 1s
done
exit 0
else else
$(cd $HOME/.local/share/dzgui/helpers; zenity --text-info --html --width=390 --height=452 --filename="d.html" 2>/dev/null) $(cd $HOME/.local/share/dzgui/helpers; zenity --text-info --html --width=390 --height=452 --filename="d.html" 2>/dev/null)
return 0 return 0