The following commit has been merged in the master branch:
commit 8e58420ddd777e419cdebbb37aabf43d09a65f9b
Author: Franklin <[email protected]>
Date:   Sat Feb 28 15:51:49 2015 +0800

    Modify upgrade shell for xfce

diff --git a/ezgo-misc/ask_for_upgrade.sh b/ezgo-misc/ask_for_upgrade.sh
index c00c979..e61c18a 100755
--- a/ezgo-misc/ask_for_upgrade.sh
+++ b/ezgo-misc/ask_for_upgrade.sh
@@ -1,6 +1,12 @@
 #!/bin/sh
 
-kdialog --yesno "系統將進行更新。注意:此動作一旦開始就無法中止,否則可能造成系統問題。要繼續嗎?"
+if [ -x /usr/bin/kdialog ]; then
+       kdialog --yesno "系統將進行更新。注意:此動作一旦開始就無法中止,否則可能造成系統問題。要繼續嗎?"
+elif [ -x /usr/bin/zenity ]; then
+       zenity --question --text  "系統將進行更新。注意:此動作一旦開始就無法中止,否則可能造成系統問題。要繼續嗎?"
+else
+       exit
+fi
 
 ans=$?
 

-- 
Blend for educatipn with asian specific adaptations

_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

Reply via email to