[comp.sys.sun] WingZ selection service problem

asnyder@ernie.artorg.hmc.psu.edu (Alan J. Snyder) (03/26/91)

Openwindows uses a selection service called sv_xv_sel_svc.  Wingz requires
the old sunview selection_svc (/bin/sunview1/selection_svc) to be running.
Before starting wingz, be sure a copy of the old selection_svc is running.
I edited the wingz startup script to check for selection_svc and start one
if it's not there.

- Alan Snyder

asnyder@ernie.artorg.hmc.psu.edu (Alan J. Snyder) (04/02/91)

> In a previous posting, I complained about Informix Wingz not working
> in the Sunview Compatibillity mode Under Open Windows 2.0.
> 
> Mark Day was kind enough to send email letting me know what the problem
> is.  It turns out that Wingz is trying to use the Sunview Selection
> service, but that isn't started automatically under Open Windows.  The
> solution is to start the Sunview selection service myself manually.  It is
> important to remember to kill the Sunview selection service after you have
> terminated the Wingz program to avoid problems with multiple copies
> running.

You should not necessarily kill selection_svc upon exiting WingZ. Some
other sunview apps (e.g., Framemaker) will use selection_svc if it is
there and will then exhibit the same problems when it's killed.  I patched
my wingz startup script to start selection_svc if it's not running, but
ended up removing code ti kill it upon exit...

	#run the correct executable if it is there
	if ( "$dir" == "$fullpath" ) then
		set fullpath=../bin.$ARCTYPE/$prog
	else
		set fullpath=$dir/../bin.$ARCTYPE/$prog
	endif
	if ( -f $fullpath ) then
+		if (`ps -ax | grep -c selection_svc` == "1" )  then
+			/usr/bin/sunview1/selection_svc &
+			set started_sel_svc
+		endif
		exec $fullpath $*
+	#	if ($?started_sel_svc) then
+	#		(set j=`ps -ax|grep selection_svc | head -1`
+	#		kill -1 $j[1]) >& /dev/null
+	#	endif
	else
		echo "Cannot find $prog for your machine architecture: $ARCTYPE."
		echo "Looking for $prog in $fullpath."
	endif

- Alan Snyder
asnyder@artorg.hmc.psu.edu