I run it from .xinitrc, myself, but I agree:  this does seem odd.

This wouldn't be an issue on a Linux box with an X-based login (e.g.
xdm, kdm, ...):  it would presumably get run as part of the system-wide
X startup.

However, since X is being run by an individual user, I guess this isn't
too crazy:  everything will be reset when you log out (of the OSX login,
not X, of course).

On Tue, 2003-07-01 at 10:22, [EMAIL PROTECTED] wrote:
> Hi,
> 
> I'm still having trouble with X fonts, and I've tracked it down to
> the fact that when /sw/etc/profile.d/xfontpath.sh runs, $DISPLAY
> has not yet been set.
> 
> Here's part of what pstree says about my current X session (sorry
> about the extra-long lines):
> 
>  | \-+- 04087 dan /Applications/XDarwin.app/Contents/MacOS/XDarwin -psn_0_40632
>  |   \-+- 04088 dan -bash -i (bash)
>  |     \-+- 04109 dan xinit /Users/dan/.xinitrc -- /usr/X11R6/bin/XDarwinStartup :0
>  |       |--- 04110 dan /usr/X11R6/bin/XDarwinStartup :0 -idle
>  |       \-+- 04111 root xterm -geometry 66x8-0-0 -n X! -T X!
> 
> (That xterm comes from the "exec xterm..." at the very end of my
> .xinitrc.  I start XDarwin by double-clicking in the Finder.)
> 
> AFAICT, process 4088 executed my .bash_profile, which sourced
> /sw/bin/init.sh, which sourced /sw/etc/profile.d/xfontpath.sh,
> which noticed that $DISPLAY didn't exist and then *didn't* run
> "xfontpath enable."  All my other xterms/shells are of the non-
> login variety, so /sw/etc/profile.d/xfontpath never gets another
> chance.
> 
> I can think of two ways to execute xfontpath after $DISPLAY
> exists:
> 
>     (1) start a login shell from my .xinitrc;
>     (2) add "xfontpath enable" to my .xinitrc.
> 
> I must say that I don't particularly like either of those ideas.
> (1) will leave me with one shell having a (possibly) different
> environment from the rest.  (2) feels like I'm doing "system
> level" things from my "user level" .xinitrc file.
> 
> What am I missing?
> 
> $ fink --version
> Package manager version: 0.13.3
> Distribution version: 0.5.3.cvs
> 
> $ sw_vers 
> ProductName:    Mac OS X
> ProductVersion: 10.2.6
> BuildVersion:   6L60
> 
> $ fink list -i xfree86 fonts
> Information about 2666 packages read in 2 seconds.
> 
>  i   ghostscript-fon  6.0-3        Standard fonts for Ghostscript
>  i   msttcorefonts    1.2-2        Microsoft's TrueType core fonts for the web
>  i   x-ghostscript-f  20020206-3   Allows ghostscript fonts to be used withi...
>  i   xfree86          4.3.0-2      XFree86 distribution
>  i   xfree86-shlibs   4.3.0-2      XFree86 distribution
>  i   xfree86-upgrade  20030228-1   Shell script to upgrade xfree86
> 
> Thanks,
> Dan
-- 
Alexander K. Hansen
Associate Research Scientist, Columbia University, visiting MIT PSFC
Levitated Dipole Experiment
http://www.psfc.mit.edu/LDX


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to