On Sat, Oct 01, 2011 at 02:05:54PM +0100, Jorge Almeida wrote: > On Sat, Oct 1, 2011 at 1:50 PM, XeCycle <xecycle@xxxxxxxxx> wrote: > > Jorge Almeida <jjalmeida@xxxxxxxxx> writes: > > > > [...] > > > >> It seems that xmodmap requires being run from an emulator inside an X > >> session, which it's not supposed to. > > > > I'm afraid not. For me, I'm running it like this: > > > > .xinitrc: > > #!/bin/sh > > metacity & wmpid=$! > > sleep 2 > > xmodmap ~/.xmodmaps & > > # other commands > > wait $wmpid > > > > It works for me. > > > Thanks. It may be an openbox thing, but then you started your wm > before other stuff. Any special reason for that? Why not exec into > metacity in the end, rather than keeping .xinitrc waiting? And why > backgrounding xmodmap? I suppose I should try all possibilities, but > it remains the mystery: why running from the console doesn't work? > > Jorge Almeida FWIW, icewmbg, which is supposed to be run before icewm (according to the documentation); or which is supposed to be run by icewm-session; fails for similar reasons ($DISPLAY is not set and X is not running) unless I first run icewm, open a terminal window and then run icewmbg. For me this is not a big deal because I run icewm in order to run lean and clean and if I really want to see that background photo, I can run xfwm4. T.