[Xquartz-dev] Re: 2.1.2 release candidate

Peter Dyballa Peter_Dyballa at Web.DE
Wed Jan 9 08:43:45 PST 2008


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


--
Greetings

   Pete

A morning without coffee is like something without something else.






More information about the Xquartz-dev mailing list