typo in squeak.sh.in

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

typo in squeak.sh.in

K. K. Subramaniam
 
Hi Ian,

I fixed a typo on squeak.sh script. It affects those who use squeak.sh in KDE on
Linux.  .. Subbu

===================================================================
--- platforms/unix/cmake/squeak.sh.in   (revision 2146)
+++ platforms/unix/cmake/squeak.sh.in   (working copy)
@@ -15,7 +15,7 @@

 # find a way to display dialogues

-if test -n "$DISPLAY" -a -x "`which xkdialog 2>/dev/null`"; then
+if test -n "$DISPLAY" -a -x "`which kdialog 2>/dev/null`"; then
     error ()           { kdialog --error "${me}: $*"; exit 1; }
     confirm ()         { if kdialog --yesno "${1} ${2}?"; then result="${2}";
else result=""; fi; }
     chooseItem ()      { title="$1"; shift; result=`kdialog --combobox
"${title}" $*`; }


squeak.sh.in.diff (633 bytes) Download Attachment
squeak.sh.in (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: typo in squeak.sh.in

K. K. Subramaniam
 
On Friday 27 November 2009 09:55:41 am K. K. Subramaniam wrote:
> +if test -n "$DISPLAY" -a -x "`which kdialog 2>/dev/null`"; then
On second thoughts,

 + if test -n "$KDE_FULL_SESSION"; then

is a better fix. It is possible for both kdialog and zenity to be installed
(multiuser?) machines but the current session is what needs to be tested
before popping up a dialog.

Subbu