[Interest] How to disable session management.

Bill Crocker william.crocker at analog.com
Mon Apr 22 13:43:50 CEST 2013


On 04/22/2013 07:19 AM, Bo Thorsen wrote:
> Hi Bill,
>
> Den 22-04-2013 12:27, Bill Crocker skrev:
>> I am running my Qt app with a virtual X server on a compute farm as part of
>> regression testing.
>> Those instances still appear to want to work with the session manager on my
>> login host.
>> This fails and the following messages appear.
>>
>>> _IceTransSocketUNIXConnect: Cannot connect to non-local host juno.adsdesign.analog.com
>>> Qt: Session management error: Could not open network socket
>>
>> How to disable session management under these circumstances?
>>
>> pkill -f "Xvfb :30"
>> Xvfb :30 -ac&
>> run_my_qt_app -display :30
>> pkill -f "Xvfb :30"
>
> I'm not completely sure about this, because it's ages ago that I did
> something similar.
>
> You should probably unset the DISPLAY variable for the Xvfb run, so it
> doesn't know about your own display.
>

#!/bin/csh
unsetenv DISPLAY
pkill -f "Xvfb :30"
Xvfb :30 -ac &
run_my_qt_app -display :30
pkill -f "Xvfb :30"

Thanks for the suggestion, but no change.

Bill

-------------
FYI. A number of other random, non-Qt issues.
1 - How to insure the Xvfb goes away when I am done with it.
2 - The Xvfb tries to register itself globally with /tmp/.X30-lock,
     (which fails, randomly) but I just want a short lived local session.




More information about the Interest mailing list