Hi

We have the following utfit script to be run on a session connect:
#!/bin/ksh
#exec 2>/tmp/utfit.out
#set -x
#print -n2 "$(/usr/openwin/bin/xprop -root)"
PATH=$PATH:/usr/openwin/bin:/usr/X11R6/bin

isCDE() {
[ -z "$(xprop -root GNOME_SM_PROXY | grep -v 'no such atom on any window
')" ]
}

# Get the original screen size the monitor/SRSS agreed was reasonable
DISPNUM=$(echo $DISPLAY | sed 's/:\([^.]*\).*/\1/')
DESIRED_SIZE=$(nawk -F '=' \
   '$1 == "CURRENT_RESOLUTION" { split($2,a,":"); print a[1] }' \
   /tmp/SUNWut/config/dispinfo/$DISPNUM)

# Get the size that the desktop is set to
DESKTOP_SIZE=$(xwininfo -root | nawk '/-geometry/{split($2,a,"[+-]"); print a[1]
}')

# If they don't match, make the desktop resize to the monitor's capability
if [ -n "$DESIRED_SIZE" -a "$DESKTOP_SIZE" != "$DESIRED_SIZE" ]
then
   xrandr -s "$DESIRED_SIZE"

# to work around a bug, send a HUP to gnome-panel in case it didn't
# handle the resize automatically as it should have
#    sleep 1; pkill -HUP gnome-panel
fi

MYPID=`/usr/bin/pgrep -U $USER -x icewm`
kill -HUP $MYPID

exit 0


The command was put in the following 0200.SUNWut file
in /usr/dt/config/Xsession.d:
/opt/SUNWut/bin/utaction -c `/opt/SUNWut/bin/utset -o s=h,v=31` &
/opt/SUNWut/bin/utaction -c `/usr/local/etc/utfit` &

The first utaction is working fine setting the sound, but the utfit command is not being executed. Has something changed in regards to automatically resizing your desktop on Sunray 4.2? Runnning on Solaris 10 Sparc.

Any suggestions would be greatly appreciated.

--
*****************************************************************
Shaila Parashar                 e-mail:[email protected]
UNIX System Administrator       tel:- (970)-491-6555
Engineering Network Services
Colorado State University
Fort Collins, CO 80523-1301
******************************************************************
" Smile is a curve that sets things straight. "
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to