shorne in japan

blog about contact

The Environment

13 Jul 2007

There has been something bothering me on my desktop for a while. It seems that whatever I try to do LD_LIBRARY_PATH can not be set when starting a session via gdm. I used to think that is was just because my .bash_profile was not getting loaded, but it was, my other variables were set fine PATH, LDFLAGS, CFLAGS, etc.

I used to get around this by writting small scripts such as:

#!/bin/bash

LD_LIBRARY_PATH="/usr/lib64/firefox-1.5.0.10:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
pushd /opt/shorne/xine/bin
exec ./gxine "$*"

popd

But today, I had some free time and a lightbulb went dead. I needed to figure it out. I did a few google searchs and came up with this gem "ssh-agent is smart enough to detect that LD_LIBRARY_PATH is a potential security hole, and is thus not to be trusted".

So, I went into my /etc/X11/xinit/xinitrc-common and cleared SSH_AGENT. After logging in everything works fine. Finally.