Re: Inconsistencies with ~/.xinitrc being loaded
Re: Inconsistencies with ~/.xinitrc being loaded
- Subject: Re: Inconsistencies with ~/.xinitrc being loaded
- From: Rogue Agent <email@hidden>
- Date: Thu, 4 Jan 2007 22:41:34 -0700
Do you have a ~/.MacOSX/environment.plist set up?
By "willing to try such a test" do you mean me trying to set
different parameters than I am in the .xinitrc file, or do you mean
just trying to launch it from the dock?
I have tried putting it in the dock and then launching and ended up
with the predictable results. No difference from launching within
the GUI.
I tried changing my .xinitrc file to open multiple xterms. This is
where it gets weird. Like you have experienced when launching form
the GUI, it will open two xterms. HOWEVER it will not set my $PATH
variable. Another thing is, that with OR without the .xinitrc file,
if I launch from terminal, my $PATH is set. I mistakenly assumed the
difference was from the .xinitrc and it may not have been. I am
including my .xinitrc file. Perhaps it is the command I am using to
set the variable (which I found in an example .xinitrc)
It seems that somehow I might get this to work without setting up
the .MacOSX/environment.plist file.
Thanks again for any help and insight!
#!/bin/sh
# $Id: xinitrc,v 1.3 2004/06/11 04:37:23 jharper Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f "$sysresources" ]; then
xrdb -merge "$sysresources"
fi
if [ -f "$sysmodmap" ]; then
xmodmap "$sysmodmap"
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# run profile to set $PATH and other vars correctly
. $HOME/ .bash_profile
# start some nice programs
xterm &
xterm &
# start the window manager
exec quartz-wm
On Jan 4, 2007, at 5:02 PM, Don MacQueen wrote:
When I start X11 by double-clicking on its icon (actually, by its
representative in the Dock), the commands in my ~/.xinitrc file are
executed.
I know this is true, because I have changed window managers, and
that is where the window manager is specified. Also, I have done
things like change how many xterm windows are started, or their
options (such as color).
Would you be willing to try such a test yourself?
-Don
At 4:15 PM -0700 1/4/07, Rogue Agent wrote:
I have scoured the web, mailing list archives and forums for
answers to this issue but have been unsuccessful as of yet.
Basically, this is what I am seeing:
When I launch X11.app from the GUI (either in recent items or
directly from Applications->Utilities) my ~/.xinitrc is not
loaded. I confirm this by checking my $PATH variable which should
be modified by the ". $HOME/ .bash_profile" inclusion.
When I launch X11.app from the terminal by typing "open /
Applications/Utilities/X11.app", my ~/.xinitrc IS loaded and my
$PATH variable is set correctly.
I have deleted the X11.app prefs so that at launch I am prompted
to use the standard environment instead of my .xinitrc. I say no,
to keep my .xinitrc file but it doesn't seem to matter.
I also found in an old FAQ that mentions something about a plist
needing to be set up in ~/.MacOSX, except that directory does not
exist in my home dir. I am running 10.4.8 on a MacBook Pro.
Any Ideas?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/
mailman/options/x11-users/email@hidden
This email sent to email@hidden
--
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
--------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden