Locate environment variables
I want to remove a line that set a variable, its name is XMODIFIERS, but I can't locate where is it from.
I see it though: Code:
$ export|grep -i xmod Code:
$cat /etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc | grep -i xmod How can i locate the file which sets declare -x XMODIFIERS="@im=unikey" Any help would be appreciate. |
I can't think of a file you've missed. As a workaround, you could always unset the variable at the bottom of your ~/.bashrc.
Code:
unset XMODIFIERS |
It's not an optimal idea because XMODIFIERS is set once before XMODIFIERS="@im=unikey" is set and I need the previous value though I don't know what value is it? :)
|
could you cd / and grep XMODIFIERS * to find which file sets XMODIFIER first and what the first setting is?
or use the above to find which files set XMODIFIER nd the comment out the line that sets XMODIFIER and reboot. Then you could echo $XMODIFIER to see what the initial value of xmodifier is? |
If you could find someone with a pristine system the same as yours, that someone might be able to determine what that system is set to. I have Fedora 7 and 9 running and they have XMODIFIERS unset. But your profile is missing.
Dave |
Quote:
Code:
grep -r XMODIFIER /etc/* At first I thought grep through whole huge file system was not practical till i figured out where it must be. I finally found it inside /etc/X11/Xsession.d Thank you, I greatly appreciate all your helps. |
You're very welcome. Glad you found what you were looking for.
|
All times are GMT -5. The time now is 12:59 AM. |