<div dir="ltr">You need to invoke your command from inside of a bash script. <br><br>On Fri, Feb 21, 2014 at 7:26 AM, Jim Rees <span dir="ltr"><<a href="mailto:rees@umich.edu" target="_blank">rees@umich.edu</a>></span> wrote:<br>
<a href="mailto:daryl@ci.com.au">daryl@ci.com.au</a> wrote:<br>
<br>
I'm not sure how openbox executes commands, but it doesn't seem to do many<br>
of the usual shell expansions. Try this:<br>
<br>
                          <command><br>
                                  sh -c "xterm -display $DISPLAY"<br>
                          </command><div class="gmail_extra"><br><br><div class="gmail_quote">From my limited reading of the code, OpenBox expands only a few special case variables.  Special variables are pid, wid, pointer. execute.c line 140<br>
<br></div><div class="gmail_quote">I invoked this script from the OpenBox execute statement:<br>#!/bin/bash<br>theText=""<br><br>echo "witin $0 =================================" | cat >>/home/me/letussee<br>
<br>echo "in $0" | cat >>/home/me/letussee<br><br>echo "with $# $* " | cat >>/home/me/letussee<br><br>echo "with DISPLAY = $DISPLAY " | cat >>/home/me/letussee<br><br>echo "with PATH = $PATH " | cat >>/home/me/letussee<br>
<br></div><div class="gmail_quote">with this result<br>witin /home/me/trialtext.sh =================================<br>in /home/me/trialtext.sh<br>with 3 line $DISPLAY $PATH <br>with DISPLAY = :0 <br>with PATH = /usr/libexec/lightdm:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin <br>
me $ <br><br><br><br></div><div class="gmail_quote">Robert<br></div><div class="gmail_quote"><br><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class=""><div class="h5">_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
</div></div></blockquote></div><br><br>
</div></div>