mirror of
https://github.com/aclist/dztui.git
synced 2025-04-04 19:43:00 +02:00
fix: fedora 38 hotfix
This commit is contained in:
parent
57460dacb6
commit
ad55ee6406
2 changed files with 3 additions and 10 deletions
11
dzgui.sh
11
dzgui.sh
|
@ -1912,7 +1912,7 @@ initial_setup(){
|
||||||
}
|
}
|
||||||
test_zenity_version(){
|
test_zenity_version(){
|
||||||
local current="$1"
|
local current="$1"
|
||||||
local cutoff="3.91.0"
|
local cutoff="3.99.1"
|
||||||
if [[ "$(printf '%s\n' "$cutoff" "$current" | sort -V | head -n1)" == "$cutoff" ]]; then
|
if [[ "$(printf '%s\n' "$cutoff" "$current" | sort -V | head -n1)" == "$cutoff" ]]; then
|
||||||
logger INFO "zenity version greater than or equal to $cutoff"
|
logger INFO "zenity version greater than or equal to $cutoff"
|
||||||
echo greater
|
echo greater
|
||||||
|
@ -1926,14 +1926,7 @@ main(){
|
||||||
local zenv=$(zenity --version 2>/dev/null)
|
local zenv=$(zenity --version 2>/dev/null)
|
||||||
[[ -z $zenv ]] && { logger "Missing zenity"; exit; }
|
[[ -z $zenv ]] && { logger "Missing zenity"; exit; }
|
||||||
local res=$(test_zenity_version $zenv)
|
local res=$(test_zenity_version $zenv)
|
||||||
case $res in
|
initial_setup > >($steamsafe_zenity --pulsate --progress --auto-close --title="DZGUI" --no-cancel --width=500 2>/dev/null)
|
||||||
"greater")
|
|
||||||
initial_setup
|
|
||||||
;;
|
|
||||||
"lesser")
|
|
||||||
initial_setup > >($steamsafe_zenity --pulsate --progress --auto-close --title="DZGUI" --no-cancel --width=500 2>/dev/null)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
main_menu
|
main_menu
|
||||||
#TODO: tech debt: cruddy handling for steam forking
|
#TODO: tech debt: cruddy handling for steam forking
|
||||||
[[ $? -eq 1 ]] && pkill -f dzgui.sh
|
[[ $? -eq 1 ]] && pkill -f dzgui.sh
|
||||||
|
|
2
news
2
news
|
@ -1 +1 @@
|
||||||
NEWS: Better first-time setup for Steam Deck/Flatpak installs and misc. hardening
|
NEWS: If you are using Fedora 38, please update to zenity-3.99.1-1 to use DZGUI.
|
||||||
|
|
Loading…
Reference in a new issue