changeset 161:4149dbdf042f

Re #417: Improve WarFoundry installation experience * Add handling for KDE and kdialog instead of Zenity
author IBBoard <dev@ibboard.co.uk>
date Tue, 17 Jul 2012 20:46:44 +0100
parents b926b1b0ed79
children 354c1d2ad086
files WarFoundry.sh
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/WarFoundry.sh	Mon Jul 16 20:46:17 2012 +0100
     1.2 +++ b/WarFoundry.sh	Tue Jul 17 20:46:44 2012 +0100
     1.3 @@ -5,6 +5,12 @@
     1.4  	command -v zenity >/dev/null 2>&1
     1.5  	if [[ $? == 0 ]]; then
     1.6  		zenity --error --text="$1"
     1.7 +		return
     1.8 +	fi
     1.9 +
    1.10 +	command -v kdialog >/dev/null 2>&1
    1.11 +	if [[ $? == 0 ]]; then
    1.12 +		kdialog --error "$1"
    1.13  	fi
    1.14  }
    1.15