Glenn Faden-san wrote (02/13/09 10:55 AM):
> 
> Takao Fujiwara - Tokyo S/W Center wrote:
>> Thanks for your reviews.
>> DISPLAY is kept there to follow the reply and the URL will be added in 
>> the comment for the reference.
>>
>> Regarding to PATH, I took the old file by mistake, currently 
>> /usr/X11/bin is added for all sessions in 0011.env.
>> I don't know why /usr/sfw/bin is added in Xinitrc.tjds. /usr/sfw/bin 
>> is not for TX only?
> 
> There are no special pathnames for TX. It is apparently a mistake to 
> have sfw in the path. Probably it should be /usr/gnu/bin.

OK, I'll remove the path setting at the moment. Current PATH is ok since 
/usr/X11/bin is added for xscreensaver.
Adding /usr/gnu/bin might be another discussion.

> 
> Both of these (DISPLAY and PATH) settings are workarounds for bugs that 
> should be fixed elsewhere. There really should be no special DISPLAY 
> required since UNIX domain (DISPLAY=:0) is supposed to work. I'm not 
> sure if it is still broken in the latest build. I also don't know where 
> the standard PATH is set for GNOME sessions.

My understanding is, DISPLAY=:0 and DISPLAY=unix:0 is no problem but 
DISPLAY=hostname:0 was a problem and it's not clear if we still need the 
workaround.
I don't try to set up TX environment now since my GDM is the trunk instead of 
GDM 2.20 base.

Probably I think it's better to modify the case of DISPLAY=hostname:0* at the 
moment.

fujiwara

> 
> --Glenn
>>
>>
>> Glenn Faden-san wrote (02/13/09 03:10 AM):
>>> Alan Coopersmith wrote:
>>>>> +# Copied from /usr/dt/config/Xinitrc.tjds
>>>>> +# Workaround Xconnecion problem if needs be
>>>>> +if [ x"$DESKTOP_SESSION" = xtgnome -o x"$DESKTOP_SESSION" = xtjds 
>>>>> ] ; then
>>>>> +  DISPLAY=127.0.0.1:0.0 +  PATH=${PATH}:/usr/X11/bin:/usr/sfw/bin
>>>>> +fi
>>>>>     
>>>>
>>>> I don't think the $DISPLAY setting is needed any more, since the
>>>> needed changes to support :0 are in libX11 (and since that hardcodes
>>>> :0.0 will break displays on Sun Rays, virtual terminals, Xvncs on
>>>> additional ports, etc.).
>>>>
>>>> The PATH setting should be applied to all sessions, not just trusted
>>>> ones, as all sessions need commands in those paths (like xscreensaver).
>>>>
>>>>   
>>> See my blog entry:
>>>
>>> http://blogs.sun.com/gfaden/entry/improving_x11_performance_and_security
>>>
>>> This workaround is required to use UNIX domain sockets with TX. The 
>>> workaround is required until a fix in made to gdm that removing the 
>>> symlink between /tmp/.X11-unix and /var/tsol/doors. I'm not sure of 
>>> the status of the gdm issue. It was supposed to have been fixed by 
>>> Brian Cameron. If this has happened already, then the DISPLAY 
>>> workaround (and my lofs mount workaround) should be removed.
>>>
>>> --Glenn
>>>
>>
> 
> 


Reply via email to