[Xquartz-dev] Re: 2.1.2 release candidate

Jeremy Huddleston jeremyhu at berkeley.edu
Wed Jan 9 14:22:00 PST 2008


On Jan 9, 2008, at 08:43, Peter Dyballa wrote:

>
> Am 09.01.2008 um 01:58 schrieb Jamie Kennea:
>
>> I want to start the server via '/bin/bash --login /usr/X11/bin/ 
>> startx'
>> rather than just '/usr/bin/startx' because I want to make sure that /
>> etc/profile and ~/.profile are sourced to setup the user's
>> environment.  Not doing so would cause $PATH to be just "/usr/X11/ 
>> bin:/
>> usr/bin:/bin:/usr/sbin:/sbin".  Thus if they use macports and have
>> 'rxvt' as one of their applications in X11's Applications menu,
>> they'll need to give the full path to the application.  This is
>> actually the way the 10.5 shipped X11 behaved, but I regard this as a
>> bug and fixed it by using 'login -f <username> /bin/sh -c /usr/X11/ 
>> bin/
>> Xquartz' to exec the server within server-main.c.  That carried over
>> to a bash --login in the current configuration.
>
>
> I'm still on Tiger (and only a digest customer), why can't you just  
> use 'login -f <user>' which then launches this user's login shell?  
> That's "here" the way an user gets logged in. Or, to be exact, it  
> uses the -p switch, too, to discard the previous process environment  
> settings. From pstree:
>
>   \-+- 00379 pete /Applications/Utilities/Terminal.app/Contents/ 
> MacOS/Terminal -psn_0_1572865
>     |-+= 00402 root login -pf pete
>     | \-+= 00405 pete -tcsh
>     |   \-+= 07310 pete pstree -w -p 379
>     |     \--- 07311 root ps -axwwo user

That's what I want to do (see previous posts from me when your digest  
comes for more detail), but launchd.plist doesn't have an easy way to  
get <user>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3040 bytes
Desc: not available
Url : http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20080109/7a6b83e2/smime-0001.bin


More information about the Xquartz-dev mailing list