<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#333333" bgcolor="#FFFFCC">
    <div class="moz-cite-prefix">i already found your previous posts not
      really on topic, but this definitely hasn't got anything to do
      with openbox anymore.<br>
      maybe your distro has an online chat, try there.<br>
      <br>
      On 10/31/2014 11:10 PM, E R wrote:<br>
    </div>
    <blockquote
cite="mid:CAB1i-Sy2StEaxGJOGy=q+4fbVrNxPc=qCb_LUdOVEo-Gs2acCw@mail.gmail.com"
      type="cite">
      <pre wrap="">While we're on the subject of terminating multiple sh instances
running, I use Tint2 from SVN with Openbox, and if anyone uses it, you
can create 'Launchers' for it that start the app from a .desktop file.

So with some launchers I've created, when I click on one of those,
I'll get an sh instance for the application running from the .desktop,
and the application process as well, anyone know how I can stop this
.desktop sh instance from running too?

I have one launcher for bleachbit, when I click to run it and look in
htop this is what I'll see;

/bin/sh -c bleachbit > /dev/null 2>&1
python /usr/bin/bleachbit

The contents of the bleachbit.desktop have two exec lines, not sure
why the 'TryExec' one;


TryExec=bleachbit >/dev/null 2>&1
Exec=bleachbit >/dev/null 2>&1


Thanks...


On Fri, Oct 31, 2014 at 10:49 AM, E R <a class="moz-txt-link-rfc2396E" href="mailto:ears.box@gmail.com"><ears.box@gmail.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Ok so this is good then?

<command>sh -c "exec hexchat &gt; /dev/null 2&gt;&amp;1 &amp;"</command>



On Fri, Oct 31, 2014 at 5:50 AM, Dana Jansens <a class="moz-txt-link-rfc2396E" href="mailto:danakj@orodu.net"><danakj@orodu.net></a> wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">exec makes the shell replace its own process with the command instead of
running a sub-process, so ya what Mikael said.

On Fri, Oct 31, 2014 at 3:15 AM, E R <a class="moz-txt-link-rfc2396E" href="mailto:ears.box@gmail.com"><ears.box@gmail.com></a> wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">
Actually my bad, this does appear to work;

<command>sh -c "icecat &gt; /dev/null 2&gt;&amp;1 &amp;"</command>

So you're saying I should change it to this instead?


<command>sh -c "exec icecat &gt; /dev/null 2&gt;&amp;1 &amp;"</command>

I've never known to put exec in a openbox menu.xml <command> before, hmm


On Thu, Oct 30, 2014 at 9:06 PM, Mikael Magnusson <a class="moz-txt-link-rfc2396E" href="mailto:mikachu@gmail.com"><mikachu@gmail.com></a>
wrote:
</pre>
            <blockquote type="cite">
              <pre wrap="">On Fri, Oct 31, 2014 at 7:12 AM, E R <a class="moz-txt-link-rfc2396E" href="mailto:ears.box@gmail.com"><ears.box@gmail.com></a> wrote:
</pre>
              <blockquote type="cite">
                <pre wrap="">Hi,

I want to run some apps to /dev/null in menu.xml, so I have like this
example below;

<command>sh -c "icecat &gt; /dev/null 2&gt;&amp;1"</command>

But if run the command like this I see in htop the application name
running and sh too.

I forgot who it was just recently showed me how to stop sh from
running when using commands in the autostart.sh, but not sure how to
apply this to the menu.xml command.


All I understand is that I need an ampersand & on the end of the
command, something like this?

<command>sh -c "icecat &gt; /dev/null 2&gt;&amp;1 &"</command>
</pre>
              </blockquote>
              <pre wrap="">
use sh -c "exec icecat ...

--
Mikael Magnusson
_______________________________________________
openbox mailing list
<a class="moz-txt-link-abbreviated" href="mailto:openbox@icculus.org">openbox@icculus.org</a>
<a class="moz-txt-link-freetext" href="http://icculus.org/mailman/listinfo/openbox">http://icculus.org/mailman/listinfo/openbox</a>
</pre>
            </blockquote>
            <pre wrap="">_______________________________________________
openbox mailing list
<a class="moz-txt-link-abbreviated" href="mailto:openbox@icculus.org">openbox@icculus.org</a>
<a class="moz-txt-link-freetext" href="http://icculus.org/mailman/listinfo/openbox">http://icculus.org/mailman/listinfo/openbox</a>
</pre>
          </blockquote>
          <pre wrap="">


_______________________________________________
openbox mailing list
<a class="moz-txt-link-abbreviated" href="mailto:openbox@icculus.org">openbox@icculus.org</a>
<a class="moz-txt-link-freetext" href="http://icculus.org/mailman/listinfo/openbox">http://icculus.org/mailman/listinfo/openbox</a>

</pre>
        </blockquote>
      </blockquote>
      <pre wrap="">_______________________________________________
openbox mailing list
<a class="moz-txt-link-abbreviated" href="mailto:openbox@icculus.org">openbox@icculus.org</a>
<a class="moz-txt-link-freetext" href="http://icculus.org/mailman/listinfo/openbox">http://icculus.org/mailman/listinfo/openbox</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>