Thanks for the tips on zenity. It is indeed pretty easy to use. I'm going with a variant of Murray's sample. Mine adds a while loop so it keeps coming back and some user entry checking so it throws up another zenity warning dialog if the click OK without actually selecting anything. At the top of my script, I also use xli to set a wallpaper image on the root window, which was something else I was wanting to do.

One thing I have noticed is that in kiosk mode, I don't get any window decorations. It's not a big deal and was the same case with the original XmCreateMessageBox wrapper. I just thought it maybe would look a bit "nicer" and more polished if there was something there. Is this possible by customizing the dtsession environment somehow? Or does the kiosk session not really have an desktop environment to speak of?

Thanks.
Seth

On 07/06/2010 05:48 PM, Murray Fraser wrote:
I use zenity for something similar:

#!/bin/bash
RESULT=`/usr/bin/zenity --list --radiolist --column=""
--column=Application FALSE Firefox FALSE Calculator FALSE Terminal`

if [ $? -eq 0 ] ; then

   if [ "$RESULT" == "" ] ; then
     echo "No choice"
   elif [ "$RESULT" == "Firefox" ]; then
     echo "/usr/bin/firefox"
     /usr/bin/firefox

   elif [ "$RESULT" == "Calculator" ]; then
     echo "/usr/dt/bin/dtcalc"
     /usr/dt/bin/dtcalc

   elif [ "$RESULT" == "Terminal" ]; then
     echo "/usr/dt/bin/dtterm"
     /usr/dt/bin/dtterm

   else
     echo "Unrecognised choice"
   fi

else
   echo "Cancelled"
fi

On Wed, Jul 7, 2010 at 7:22 AM, Seth Galitzer<[email protected]>  wrote:
I'm sure this is a FAQ, but I'm not finding an answer in the archives yet.

For the last couple of years, we've been using the CAM chooser script from
http://blogs.sun.com/ThinkThin/entry/cam_chooser_application.  This has
served us well until now, when I need to ad a third login option.  I haven't
figures out yet how to override the "quit" behavior and use that button to
enable the third application.

Can somebody either point me to documentation on how to do this, or is there
a better way to allow an un-authenticated session to choose an application
from a list?

Thanks.
Seth




--
Seth Galitzer
Systems Coordinator
Computing and Information Sciences
Kansas State University
http://www.cis.ksu.edu/~sgsax
[email protected]
785-532-7790
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to