Re: Environment Variables when Launching X11.app
Re: Environment Variables when Launching X11.app
- Subject: Re: Environment Variables when Launching X11.app
- From: Jeremy Huddleston <email@hidden>
- Date: Thu, 7 Jan 2010 10:57:07 -0500
On Jan 7, 2010, at 10:42, Zac Durham wrote:
> Hello Everyone,
>
> This has been bugging me for a few weeks so I'll ask here and see what comes
> back.
>
> If I 'startx' from the Terminal, all my gtk and gnome settings are preserved
> from session to session.
That's not the tested method of starting X11.
> However, if I launch X11.app, the seesion loads
> some default configuration until I manually spawn gnome-settings-daemon-
> which returns all my settings to how I intend them to be.
Well that's odd because running X11.app actually results in startx running. ... so there's something else at play here...
> I expect that this
> has to do with Apple apps not respecting Terminal environment variables
No, there is nothing really special about "Apple" apps. Binaries built for darwin follow the same inheritance rules as any other UNIX.
> but
> I am a bit confused where gnome-settings-daemon comes into play. I have
> tried to add the /path/to/g-s-d in /etc/paths to no avail as have tried to
> get the X11 bash script in X11.app to spawn g-s-d- all to no avail.
How is it starting in your 'I just run startx now' case? Are you running it before startx or something?
The correct thing to do is something like this:
mkdir ~/.xinitrc.d
cat > ~/.xinitrc.d/gnome.sh <<EOF
# make the freedesktop menu entries work
export XDG_DATA_DIRS=/opt/local/share
export XDG_DATA_HOME=/opt/local/share
export XDG_CONFIG_DIRS=/opt/local/etc/xdg
# enable sound
export ESPEAKER=localhost
/opt/local/bin/gnome-settings-daemon & # or whatever options you need to pass to it
EOF
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden