On 09/27/2007 08:36 AM, Anthony Campbell wrote:
Sorry; I didn't make myself clear. It is of course in X that I want xmodmap to work. However, the error messages appear in the console BEFORE I start X with startx. They say " "XMODMAP: unbound variable" (repeated twice). With slightly different scripts I get messages saying DISPLAY is not set. This also happens if I ssh into the computer fromoutside.Possibly they are harmless, in which case I'll ignore them, since xmodmap is indeed being run in X.
That's why the code I posted test the DISPLAY variable before doing anything.