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

fix: Steam client switching from minigameslist

This commit is contained in:
aclist 2023-10-21 22:28:46 +09:00
parent dfdcea86af
commit 03dd959e09

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
version=3.3.14 version=3.3.15
aid=221100 aid=221100
game="dayz" game="dayz"
@ -498,7 +498,6 @@ passed_mod_check(){
} }
auto_mod_install(){ auto_mod_install(){
#[[ -z $(is_steam_running) ]] && { $steamsafe_zenity --info --text "Steam must be running to use this feature."; return; }
popup 300 popup 300
rc=$? rc=$?
if [[ $rc -eq 0 ]]; then if [[ $rc -eq 0 ]]; then
@ -1063,11 +1062,14 @@ generate_log(){
DOC DOC
} }
focus_beta_client(){ focus_beta_client(){
steam steam://open/library &&
steam steam://open/console 2>/dev/null 1>&2 && steam steam://open/console 2>/dev/null 1>&2 &&
sleep 1s sleep 1s
wid(){ wid(){
#wmctrl -ilx | awk 'tolower($3) == "steam.steam"' | grep 'Steam$' | awk '{print $1}' wmctrl -ilx |\
wmctrl -ilx | awk '$3 == "steamwebhelper.steam" {print $1}' awk 'tolower($3) == "steamwebhelper.steam"' |\
grep "Steam Games List" |\
awk '{print $1}'
} }
until [[ -n $(wid) ]]; do until [[ -n $(wid) ]]; do
: :
@ -1174,7 +1176,6 @@ toggle_console_dl(){
fi fi
local flip_state="auto_install=\"$auto_install\"" local flip_state="auto_install=\"$auto_install\""
awk -v "var=$flip_state" -v "nr=$nr" 'NR==nr {$0=var}{print}' ${config_path}dztuirc.old > $config_file awk -v "var=$flip_state" -v "nr=$nr" 'NR==nr {$0=var}{print}' ${config_path}dztuirc.old > $config_file
printf "[DZGUI] Set mod install to '$auto_install'\n"
source $config_file source $config_file
} }
force_update_mods(){ force_update_mods(){
@ -1356,7 +1357,7 @@ check_geo_file(){
echo "100" echo "100"
} }
run > >($steamsafe_zenity --pulsate --progress --auto-close --width=500 2>/dev/null) run > >($steamsafe_zenity --pulsate --progress --auto-close --width=500 2>/dev/null)
fi fi
} }
choose_filters(){ choose_filters(){
if [[ $is_steam_deck -eq 0 ]]; then if [[ $is_steam_deck -eq 0 ]]; then
@ -1366,7 +1367,7 @@ choose_filters(){
if [[ $sels =~ Keyword ]]; then if [[ $sels =~ Keyword ]]; then
search=$($steamsafe_zenity --entry --text="Search (case insensitive)" --width=500 --title="DZGUI" 2>/dev/null | awk '{print tolower($0)}') search=$($steamsafe_zenity --entry --text="Search (case insensitive)" --width=500 --title="DZGUI" 2>/dev/null | awk '{print tolower($0)}')
[[ -z $search ]] && { ret=97; return; } [[ -z $search ]] && { ret=97; return; }
fi fi
[[ -z $sels ]] && return [[ -z $sels ]] && return
filters=$(echo "$sels" | sed 's/|/, /g;s/ (untick to select from map list)//') filters=$(echo "$sels" | sed 's/|/, /g;s/ (untick to select from map list)//')
} }