<font class="Apple-style-span" face="'courier new', monospace"><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-style-span" style="font-family: arial; ">I notice than applications launched using dmenu doesn't have the double fork. I changed the terminal=urxvt to terminal="exec urxvt" (as in dmenu key binding) and also I don'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'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 <<a href="mailto:spencerjanssen@gmail.com">spencerjanssen@gmail.com</a>> wrote:<br>
> On Tue, Dec 01, 2009 at 07:07:48PM +0100, Luis Cabellos wrote:<br>>> Hi, I was checking why there is two procces every time than I launch a<br>>> console. I found than spawn uses /bin/sh to lauch applications. I<br>
>> think than to expecific commands is no need to double-fork,<br>>><br>>> I added the patch lo launch console without double-fork:<br>><br>> [elided]<br>><br>>> What do you think?<br>><br>
> spawnPIDf won't with applications that take arguments, for example:<br>><br>> spawn "xset -b"<br>><br>> I think the best solution is to add an 'exec' to your spawned applications:<br>
><br>> spawn "exec xterm"<br>><br>> This is the shell's syntax to execute a program directly rather than fork.<br>><br>> The current implementation seeks to balance all of these concerns:<br>
> * users want to supply arguments to programs<br>> * users will find "spawn prog [arg1, arg2, arg3]" syntax unwieldy<br>> * we don't want to support a homebrewed argument tokenizer in xmonad<br>
> * some users will want to use shell syntax in their spawns<br>><br>><br>> Cheers,<br>> Spencer Janssen<br>> _______________________________________________<br>> xmonad mailing list<br>> <a href="mailto:xmonad@haskell.org">xmonad@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/xmonad">http://www.haskell.org/mailman/listinfo/xmonad</a><br>><br><br><br><br>-- <br><br>LC, ("Prefiero caminar con una duda, que con un mal axioma." - Javier Krahe) <br>
</div>