Mac OS X X11 Behaviour and DarwinPorts
I seem to have done something wrong or have misunderstood how to configure Mac OS X 10.4.8 to use DarwinPorts. Although ~/.profile exists and .../xinit/xinitrc includes "source ~./ profile", only the first xterm window opened will have "/opt/local/ bin:/opt/local/sbin:" set in its environment. When I open subsequent xterm windows, I need to explicitly enter the command "source .profile" to include the path to the DarwinPorts X11 applications. On my original PowerBook G4, I had set my default shell to tcsh. I failed to do this when I acquired my PowerMac G5. The default shell is bash. Do I need to change my default shell? Merton Campbell Crockett m.c.crockett@adelphia.net
Le 06-10-25 à 10:06, Merton Campbell Crockett a écrit :
I seem to have done something wrong or have misunderstood how to configure Mac OS X 10.4.8 to use DarwinPorts.
Although ~/.profile exists and .../xinit/xinitrc includes "source ~./profile", only the first xterm window opened will have "/opt/ local/bin:/opt/local/sbin:" set in its environment. When I open subsequent xterm windows, I need to explicitly enter the command "source .profile" to include the path to the DarwinPorts X11 applications.
X11.app being an aqua app, it does not read the unix environment. The first xterm is probably considered a login shell and thus reads the environment. You can set every xterm to be login shell with the "-ls" option. Or you can use a window manager that is aware of the environment (any other, I guess) yves
Alternatively, you can create a file called ~/.MacOSX/environment.plist that sets up the environment for anything run as that user (it is read by loginWindow, which is the process that runs everything else, including Finder). http://developer.apple.com/qa/qa2001/qa1067.html -- Sal smile. On Wed, 25 Oct 2006, Yves de Champlain wrote: o o Le 06-10-25 � 10:06, Merton Campbell Crockett a �crit : o o > I seem to have done something wrong or have misunderstood how to o > configure Mac OS X 10.4.8 to use DarwinPorts. o > o > Although ~/.profile exists and .../xinit/xinitrc includes "source o > ~./profile", only the first xterm window opened will have "/opt/ o > local/bin:/opt/local/sbin:" set in its environment. When I open o > subsequent xterm windows, I need to explicitly enter the command o > "source .profile" to include the path to the DarwinPorts X11 o > applications. o o X11.app being an aqua app, it does not read the unix environment. o The first xterm is probably considered a login shell and thus reads o the environment. You can set every xterm to be login shell with the o "-ls" option. Or you can use a window manager that is aware of the o environment (any other, I guess) o o yves o o _______________________________________________ o macports-users mailing list o macports-users@lists.macosforge.org o http://lists.macosforge.org/mailman/listinfo/macports-users o o -------------- Salvatore Domenick Desiano Doctoral Candidate Robotics Institute Carnegie Mellon University
participants (3)
-
Merton Campbell Crockett
-
Salvatore Domenick Desiano
-
Yves de Champlain