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:
parent
ccfca162cf
commit
4b2984a5d9
2 changed files with 4 additions and 11 deletions
11
dzgui.sh
11
dzgui.sh
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -o pipefail
|
||||
version=3.3.12
|
||||
version=3.3.13
|
||||
|
||||
aid=221100
|
||||
game="dayz"
|
||||
|
@ -1905,7 +1905,7 @@ initial_setup(){
|
|||
}
|
||||
test_zenity_version(){
|
||||
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
|
||||
logger INFO "zenity version greater than or equal to $cutoff"
|
||||
echo greater
|
||||
|
@ -1919,14 +1919,7 @@ main(){
|
|||
local zenv=$(zenity --version 2>/dev/null)
|
||||
[[ -z $zenv ]] && { logger "Missing zenity"; exit; }
|
||||
local res=$(test_zenity_version $zenv)
|
||||
case $res in
|
||||
"greater")
|
||||
initial_setup
|
||||
;;
|
||||
"lesser")
|
||||
initial_setup > >($steamsafe_zenity --pulsate --progress --auto-close --title="DZGUI" --no-cancel --width=500 2>/dev/null)
|
||||
;;
|
||||
esac
|
||||
main_menu
|
||||
#TODO: tech debt: cruddy handling for steam forking
|
||||
[[ $? -eq 1 ]] && pkill -f dzgui.sh
|
||||
|
|
2
news
2
news
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue