Modify PATH variable for X11 during log-in

Posted by user1028435 on Super User See other posts from Super User or by user1028435
Published on 2012-04-11T03:31:55Z Indexed on 2012/04/11 17:33 UTC
Read the original article Hit count: 184

Filed under:
|
|
|
|

I am working on some lab computers (read: no administrative rights) that, if I log in, I need to change the PATH variable as X11 starts. The reason is that I need to change the PATH variable at this time, as opposed to later, is that the Print Screen command seems to "bind" during login (forgive my bad explanation of this).

Currently, I have a .bashrc script as a workaround:

#!/bin/bash
export PATH=/home/username/bin:$PATH

I can make it work by starting a new X, but I was wondering if it is possible to change upon login.

cat /etc/redhat-release tells me my distribution is: Red Hat Enterprise Linux Client release 5.8 (Tikanga)

© Super User or respective owner

Related posts about linux

Related posts about path