[Interest] How to disable session management.

Bill Crocker william.crocker at analog.com
Mon Apr 22 14:45:21 CEST 2013


On 04/22/2013 07:43 AM, Bill Crocker wrote:
> 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.
>>
>

I got it (from a web search).
One solution is to unset the SESSION_MANAGER env variable.
So, while it still leaves something to be desired, the following works.

unsetenv DISPLAY
unsetenv SESSION_MANAGER
pkill -f "Xvfb :30"
Xvfb :30 -ac &
run_my_qt_app -display :30
pkill -f "Xvfb :30"

Bill





More information about the Interest mailing list