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 <sg...@ksu.edu> 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 > sg...@ksu.edu > 785-532-7790 > _______________________________________________ > SunRay-Users mailing list > SunRay-Users@filibeto.org > http://www.filibeto.org/mailman/listinfo/sunray-users > _______________________________________________ SunRay-Users mailing list SunRay-Users@filibeto.org http://www.filibeto.org/mailman/listinfo/sunray-users