XQuartz startup problem
XQuartz startup problem
- Subject: XQuartz startup problem
- From: Martyn Johnson <email@hidden>
- Date: Tue, 06 Dec 2016 10:26:29 +0000
I have installed XQuartz 2.7.11 on a Macbook Pro running El Capitan 10.11.6
The first time I ran it, it immediately crashed with an error report
saying that it cannot open the log file:
Cannot open log file "//Library/Logs/X11/org.macosforge.xquartz.log"
Since I have colleagues running it successfully, I assumed there must be
something in my environment breaking it. Eventually I found that XQuartz
worked if I moved my .profile file out of the way.
I then set about trying to find out what it was in my .profile that was
causing the trouble. I have some shell code in there which sets the
CDPATH environment variable to a long string:
:..:../..:../../..:../../../..:../../../../..:../../../../../..:../../../../../../..:../../../../../../../..:/Users/maj1
which I find convenient when using the cd command interactively. I
found that if I remove this code, or execute "unset CDPATH" immediately
after it, XQuartz works. If I put it back, it fails.
I tried reporting this as a bug but it was rejected as a "configuration"
issue and that I should seek assistance here.
I'm told that the error report indicates that XQuartz is being started
with HOME=/, which does indeed seem plausible from the message. What I
don't understand is how this can be affected in any way by the contents
of my .profile file. I am not starting XQuartz from a shell; I am
starting it from the Launchpad. At this point I'm not knowingly running
a shell. As I see it, the shell comes later, after XQuartz has already
started. Even if a shell is involved in the launch process, I would not
expect it to be a login shell so I would not expect my .profile to be
executed.
So the question for this list is where does XQuartz get its value for
$HOME from, and how can it be affected by apparently unrelated shell
code in my .profile file?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden