<font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-family: arial; ">I notice than applications launched using dmenu doesn&#39;t have the double fork.  I changed the terminal=urxvt  to  terminal=&quot;exec urxvt&quot; (as in dmenu key binding) and also I don&#39;t have double-fork.</span><div>
<br></div><div> 2190  2033  09:36  \_ /home/superman/.xmonad/xmonad-i386-linux</div><div>10259  2190  10:32      \_ /bin/sh -c urxvt</div></font></div>10260 10259  10:32      |   \_ urxvt<br>10261 10260  10:32      |       \_ bash<br>
10286 10261  10:32      |           \_ ssh <a href="mailto:sumerman@kriptongo.es">sumerman@kriptongo.es</a><br>12482  2190  10:49      \_ urxvt<br>12493 12482  10:49          \_ bash<br>14711 12493  11:06              \_ ps -fea --forest<br>
</font><br>I&#39;ll worth to change spawn and automatically add exec to command string?<br><div><br>On Wed, Dec 2, 2009 at 4:36 AM, Spencer Janssen &lt;<a href="mailto:spencerjanssen@gmail.com">spencerjanssen@gmail.com</a>&gt; wrote:<br>
&gt; On Tue, Dec 01, 2009 at 07:07:48PM +0100, Luis Cabellos wrote:<br>&gt;&gt; Hi, I was checking why there is two procces every time than I launch a<br>&gt;&gt; console. I found than spawn uses /bin/sh to lauch applications. I<br>
&gt;&gt; think than to expecific commands is no need to double-fork,<br>&gt;&gt;<br>&gt;&gt; I added the patch lo launch console without double-fork:<br>&gt;<br>&gt; [elided]<br>&gt;<br>&gt;&gt; What do you think?<br>&gt;<br>
&gt; spawnPIDf won&#39;t with applications that take arguments, for example:<br>&gt;<br>&gt;    spawn &quot;xset -b&quot;<br>&gt;<br>&gt; I think the best solution is to add an &#39;exec&#39; to your spawned applications:<br>
&gt;<br>&gt;    spawn &quot;exec xterm&quot;<br>&gt;<br>&gt; This is the shell&#39;s syntax to execute a program directly rather than fork.<br>&gt;<br>&gt; The current implementation seeks to balance all of these concerns:<br>
&gt;  * users want to supply arguments to programs<br>&gt;  * users will find &quot;spawn prog [arg1, arg2, arg3]&quot; syntax unwieldy<br>&gt;  * we don&#39;t want to support a homebrewed argument tokenizer in xmonad<br>
&gt;  * some users will want to use shell syntax in their spawns<br>&gt;<br>&gt;<br>&gt; Cheers,<br>&gt; Spencer Janssen<br>&gt; _______________________________________________<br>&gt; xmonad mailing list<br>&gt; <a href="mailto:xmonad@haskell.org">xmonad@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/xmonad">http://www.haskell.org/mailman/listinfo/xmonad</a><br>&gt;<br><br><br><br>-- <br><br>LC, (&quot;Prefiero caminar con una duda, que con un mal axioma.&quot; - Javier Krahe) <br>
</div>