[Thinstation-developer] RE: Xnest & X & session problems
Brought to you by:
doncuppjr
From: Miles R. <mr...@we...> - 2005-06-02 20:48:54
|
will have better squiz over the weekend :o) but, at a brief look, I may have made a mistake. possibly should be X_NUMBER=`ps -ef | grep "Xorg " | cut -f2 -d: | cut -f1 -d" "` x_NUMBER=$X_NUMBER `ps -ef | grep "Xnest " | cut -f2 -d: | cut -f1 d" "` let XNEST_NUMBER=0 for x in $x_NUMBER; do if [ "$x" -ge "$XNEST_NUMBER" ] ; then let XNEST_NUMBER=x+1 fi done do you want to try and let me know? the above is meant to get the next free available X Screen id. so if there is a X org session running at :2 and a xorg session at :3 it would go for x in 2 3 so next available id would be 4. -----Original Message----- From: Trevor Batley [mailto:tre...@us...] Sent: Thursday, 2 June 2005 11:53 p.m. To: Miles Roper Cc: Thinstation developer Subject: Xnest & X & session problems Miles, I have been playing with my xnest & x session problems a little more. They are based on setting up sessions as per our examples: AUTOSTART=Off SESSION_0_TYPE=icewm SESSION_1_TYPE=x SESSION_1_SCREEN=2 SESSION_1_X_SERVER=192.168.1.2 SESSION_1_X_OPTIONS="-indirect" SESSION_1_AUTOSTART=Off (The example shows these as X, but I have used XNEST) SESSION_2_TYPE=xnest SESSION_2_XNEST_SERVER=192.168.1.3 SESSION_2_XNEST_OPTIONS="-query" SESSION_2_AUTOSTART=Off and running them both under replimenu and icewm. Under replimenu: x works xnest doesn't Under icewm: neither works If I comment out the SESSION_2_XNEST_OPTIONS line. Under replimenu: xnest doesn't work Under icewm: xnest does work The xnest.fullscreen script is CMD_FULLSCREEN="Xnest :\$XNEST_NUMBER -geometry $SCREEN_RESOLUTION -query" which is why adding an OPTIONS="-query doesn't work Beyond all that, we should be able to run an xnest session from replimenu and an x session from under a wm. Is it something to do with the getfreescreen function in thinstation.functions? Here is the getfreescreen section of thinstation.functions # Get Free XServer Number getfreescreen() { local X_NUMBER X_NUMBER=`ps -ef | grep "Xorg " | cut -f2 -d: | cut -f1 -d" "` x_NUMBER=$x_NUMBER `ps -ef | grep "Xnest " | cut -f2 -d: | cut -f1 d" "` let XNEST_NUMBER=0 for x in $X_NUMBER; do if [ "$x" -ge "$XNEST_NUMBER" ] ; then let XNEST_NUMBER=x+1 fi done } My scripting isn't that good, but I am assuming that there was an attempt to get this code to find the existing Xorg sessions & then the Xnest sessions & end up with all existing sessions. I can't work out how this will work. I can see how the X_NUMBER= line works and how the next line gets the same info for Xnest, but I am assuming that the x_NUMBER=$x_NUMBER <etc> is a concatenation (but is that how concatenation works?) Also, in this case shouldn't it be $X_NUMBER and then the for loop should be against $x_NUMBER. I think I'm starting to get confused, so will leave it there at the moment.... -- TrevorB (trevorbatley AT users.sourceforge.net) ================================================== Attention: The information contained in this message and/or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by person or entities other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from your system and destroy any copies. =================================================== |