<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 12 August 2014 12:20, Mauro Souza <span dir="ltr"><<a href="mailto:thoriumbr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" target="_blank">thoriumbr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
2014-08-12 9:16 GMT-03:00 Giles Orr <span dir="ltr"><<a href="mailto:gilesorr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" target="_blank">gilesorr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>></span>:<div class="gmail_extra"><div class="gmail_quote"><div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<div dir="ltr"><div>On 12 August 2014 02:41, William Park <span dir="ltr"><<a href="mailto:opengeometry-FFYn/CNdgSA@public.gmane.org" target="_blank">opengeometry-FFYn/CNdgSA@public.gmane.org</a>></span> wrote:<br></div><div class="gmail_extra">
<div>
> On Mon, Aug 11, 2014 at 09:17:28PM -0400, Giles Orr wrote:<br>
> > I'm using openbox on an Acer Chromebook (full install, not crouton).  I'm<br>> > pretty pleased with the hardware, but I've got a problem with Openbox's<br>> > autostart file.  It's a shell script, so I should be able to make decisions<br>



> > about what to run based on the hostname.  This matters because I share<br>> > configuration files and dotfiles across multiple hosts.  But it doesn't<br>> > work.  I've tried:<br>> ><br>



> > if [ "$(hostname)" == "crom" ] # works at the command line<br>> > then<br>> >     xterm -fn terminus-18 &<br>> > fi<br>> ><br>> > if [ "${HOSTNAME}" == "crom" ] # ditto<br>



> > ...<br>> ><br>> > if [ "$(cat /etc/hostname)" == "crom" ] # ditto<br>> > ...<br>> ><br>> > None work in ~/.config/openbox/autostart .  I dumped $(env) to a file from<br>



> > within the autostart and HOSTNAME isn't set, so that explains the middle<br>> > one failing, but I have no explanation for why the others don't work.  Can<br>> > anyone help?<br>><br>> Try single '=', or use Bash/Ksh which support '=='.<br>



<br></div>Thanks Walter - I do have the file.<br><br>William - that's a very good 
point: I was automatically assuming Bash because it's what I use all the
 time, and that may well NOT be what's used by Openbox.  It obviously uses a shell of some sort, but which one is open to question.  I will confirm 
later.  Thanks!</div></div>
</blockquote></div></div></div><br><div dir="ltr">echo $SHELL generally tells you which shell you are using.<br></div><br clear="all"><div>Mauro<br><a href="http://mauro.limeiratem.com" target="_blank">http://mauro.limeiratem.com</a> - registered Linux User: 294521<br>


Scripture is both history, and a love letter from God.</div>
</div></blockquote></div><br></div><div class="gmail_extra">Excellent: I'll give that a shot.<br clear="all"></div><div class="gmail_extra"><br>-- <br>Giles<br><a href="http://www.gilesorr.com/">http://www.gilesorr.com/</a><br>
<a href="mailto:gilesorr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org">gilesorr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>
</div></div>