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

fix: fedora 38 hotfix

This commit is contained in:
aclist 2023-09-14 16:52:45 +09:00
parent 40d9eb1550
commit 075e411f82
2 changed files with 3 additions and 10 deletions

View file

@ -1905,7 +1905,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
@ -1919,14 +1919,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
View file

@ -1 +1 @@
NEWS: Due to layoffs at my employer, I am without a main source of income. If you have enjoyed DZGUI in the past, please consider donating to the project. Thank you. NEWS: If you are using Fedora 38, please update to zenity-3.99.1-1 to use DZGUI.