<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 &lt;<a href="mailto:x31equsenet@gmail.com">x31equsenet@gmail.com</a>&gt;<br>
Subject: Re: [openbox] keybind problem<br>
<br>
On Thu, 17 Dec 2009 20:42:48 +0200, Tapio Pitkäranta wrote:<br>
<br>
&gt; I&#39;m having trouble setting keybinds in rc.xml. Specifically I&#39;m trying<br>
&gt; to control my mpd server with the multimedia keys. This is what I tried<br>
&gt; to add in rc.xml:<br>
&gt;<br>
&gt; &lt;keybind key=&quot;XF86AudioPlay&quot;&gt;<br>
&gt;    &lt;action name=&quot;Execute&quot;&gt;<br>
&gt;       &lt;execute&gt;mpc toggle&lt;/execute&gt;<br>
&gt;    &lt;/action&gt;<br>
&gt; &lt;/keybind&gt;<br>
&gt;<br>
&gt; Nothing happens. Typing the command in terminal works. Now, the funny<br>
&gt; thing is that any other command besides mpc works just fine, for<br>
&gt; example:<br>
<br>
I don&#39;t have mpc so I can&#39;t test it.  Maybe it depends on an environment<br>
variable that isn&#39;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&#39;m using zsh instead of bash and when I start openbox through gdm, my .bashrc isn&#39;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>