<br><div><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Date: Fri, 18 Dec 2009 06:07:28 +0000 (UTC)<br>
From: Graham Breed <<a href="mailto:x31equsenet@gmail.com">x31equsenet@gmail.com</a>><br>
Subject: Re: [openbox] keybind problem<br>
<br>
On Thu, 17 Dec 2009 20:42:48 +0200, Tapio Pitkäranta wrote:<br>
<br>
> I'm having trouble setting keybinds in rc.xml. Specifically I'm trying<br>
> to control my mpd server with the multimedia keys. This is what I tried<br>
> to add in rc.xml:<br>
><br>
> <keybind key="XF86AudioPlay"><br>
> <action name="Execute"><br>
> <execute>mpc toggle</execute><br>
> </action><br>
> </keybind><br>
><br>
> Nothing happens. Typing the command in terminal works. Now, the funny<br>
> thing is that any other command besides mpc works just fine, for<br>
> example:<br>
<br>
I don't have mpc so I can't test it. Maybe it depends on an environment<br>
variable that isn't set when the key bindings are executed. You could<br>
try looking for an error message in a log file somewhere.<br>
<br>
<br>
Graham<br>
<br></blockquote><div><br></div><div>Thanks that helped. I'm using zsh instead of bash and when I start openbox through gdm, my .bashrc isn't executed, and neither is .zshrc, until I start a terminal emulator. The error messages are logged to ~./.xsession-errors. So as a workaround I added <br>
export MPD_HOST=hostname<br>to ~/.config/openbox/autostart.sh.<br>Thanks everybody for your input.<br></div>
<div><br></div><div>-Tapio</div>
<br>