• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: global X11 config?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: global X11 config?


  • Subject: Re: global X11 config?
  • From: "Brian T. O'Neill" <email@hidden>
  • Date: Wed, 15 Jan 2003 14:05:36 -0600

You can always just run X11.app from the command line in terminal which
has the environment you want.

Brian

Quoting Joel Hacker (email@hidden) from  :
> Thank you very much.  But if I'm reading the site correctly, this sets
> environment variables for all processes, not just X11, and sets them
> when the user logs in, not when X11 is started.  Thank you for your
> kind response, but I fear I was too vague in my request.  The reason I
> was asking for X11's global config specifically is so that:
>
> a:  Xterm within X11 would "see" Fink but the Aqua Terminal would not.
>
> and
>
> b: So that I could set defaults for all users on my machine to whom I
> had given permission to run X11 and Fink-installed applications.
>
>
> With Fink and XDarwin, I had simply appended source /sw/bin/init.sh to
> the end of the /private/etc/X11/xinit/xinitrc file and not set up any
> ~/.cshrc files at all, adding only /usr/X11R6/bin to my path within
> /etc/csh.login.  With this setup  Xterm within XDarwin had the Fink
> environment but Apple's Terminal.app was "aware" of Apple binaries only
> (except for X11 itself).  I would like to duplicate this if possible
> with Apple's X11, preferably from one single "default" config file.
>
> Is it possible that Apple's X11 doesn't read any additional config
> files when it starts up but merely uses whatever environment has
> already been set for all other processes?  If so I'll have to go back
> to XDarwin, which would be a shame because Apple's X11 seems MUCH
> faster thus far.   Thank you again.
>
> On Wednesday, January 15, 2003, at 07:53  AM, lenny bruce wrote:
>
> > I wish we had a comprehensive FAQ
> > culled from the answers we've generated for each other
> > on the Fink-Users list... but we don't... so...
> >
> >
> > On Wednesday, January 15, 2003, at 04:00  AM, Joel Hacker wrote:
> >> Where is the global X11 config file?  It seems to completely ignore
> >> /private/etc/X11/xinit/xinitrc.  Anyone know?
> >
> > follow the instructions on this page
> > http://developer.apple.com/qa/qa2001/qa1067.html
> >
> > use the plist you'll create to set your path
> > and this will "magically" solve most of your Apple X11 problems.
> >
> >
> > here, let me save you some time...
> > this file should be ~/.MacOSX/environment.plist
> >
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
> > "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
> > <plist version="1.0">
> > <dict>
> > 	<key>PATH</key>
> > 	<string>$PATH:/sw/bin:/sw/sbin:~/bin:~/sbin:~/usr/bin:~/usr/sbin:~/
> > usr/local/bin:~/usr/local/sbin:/opt/bin:/opt/sbin:/usr/bin:/usr/sbin:/
> > usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/bin:/sbin:/sw/bin/
> > mldonkey-distrib</string>
> > 	<key>LD_LIBRARY_PATH</key>
> > 	<string>$LD_LIBRARY_PATH:~/lib:/opt/lib:/sw/lib:/usr/X11R6/lib:/usr/
> > lib:/sw/lib/X11:/usr/local/lib</string>
> > 	<key>DYLD_LIBRARY_PATH</key>
> > 	<string>$LD_LIBRARY_PATH</string>
> > 	<key>MANPATH</key>
> > 	<string>$MANPATH:~/man:~/usr/local/man:/opt/man:/sw/man:/sw/share/
> > man:/usr/man:/usr/local/man:/usr/local/share/man:/usr/share/man:/usr/
> > X11R6/man</string>
> > 	<key>DISPLAY</key>
> > 	<string>:0.0</string>
> > </dict>
> > </plist>
> >
> >
> >
> >
> >
> > let me recommend some rc settings (I use BASH, so adjust as necessary):
> >
> >
> > PATH="$PATH:/sw/bin:/sw/sbin:~/bin:~/sbin:~/usr/bin:~/usr/sbin"
> > PATH="$PATH:~/usr/local/bin:~/usr/local/sbin:/opt/bin:/opt/sbin"
> > PATH="$PATH:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
> > PATH="$PATH:/usr/X11R6/bin:/bin:/sbin:/sw/bin/mldonkey-distrib"
> > export PATH
> >
> > LD_LIBRARY_PATH="$LD_LIBRARY_PATH:~/lib:/opt/lib:/sw/lib:/usr/X11R6/
> > lib"
> > LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib:/sw/lib/X11:/usr/local/lib"
> > export LD_LIBRARY_PATH
> >
> >
> > DYLD_LIBRARY_PATH="$LD_LIBRARY_PATH"
> > export DYLD_LIBRARY_PATH
> >
> > MANPATH="$MANPATH:~/man:~/usr/local/man:/opt/man:/sw/man"
> > MANPATH="$MANPATH:/sw/share/man:/usr/man:/usr/local/man:/usr/local/
> > share/man"
> > MANPATH="$MANPATH:/usr/share/man:/usr/X11R6/man"
> > export MANPATH
> >
> > DISPLAY=":0.0"
> > export DISPLAY
> >
> > source /sw/bin/init.sh
> >
> > GDK_USE_XFT=1
> > export GDK_USE_XFT
> >
> > GTK_RC_FILES="/sw/etc/gtk/gtkrc:~/.gtkrc"
> > export GTK_RC_FILES
> >
> > LDFLAGS="-ltinfo -lgcc -flat_namespace -L/sw/lib"
> > export LDFLAGS
> >
> > CFLAGS="-no-cpp-precomp -fno-common -I/sw/include"
> > export CFLAGS
> >
> > CPPFLAGS="-no-cpp-precomp"
> > export CPPFLAGS
> >
> > JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"
> > export JAVA_HOME
> >
> > XAPPLRESDIR="/sw/etc/app-defaults"
> > export XAPPLRESDIR
> >
> >
> >
> > lenny bruce                        I am not a comedian,
> > email@hidden        I am Lenny Bruce.
> _______________________________________________
> x11-users mailing list | email@hidden
> Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
> Do not post admin requests to the list. They will be ignored.

--
email@hidden

****************************************************************************
UNIX is simple and coherent, but it takes a genius (or at any rate a
programmer) to understand and appreciate the simplicity."  - Dennis Ritchie
****************************************************************************
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: global X11 config? (From: lenny bruce <email@hidden>)
 >Re: global X11 config? (From: Joel Hacker <email@hidden>)

  • Prev by Date: Re: xterm scroll bars
  • Next by Date: Re: latest XDarwin?
  • Previous by thread: Re: global X11 config?
  • Next by thread: X PATH variable
  • Index(es):
    • Date
    • Thread