On Wed, 23 May 2001, Scott Micciche wrote:

> I have a question surrounding blackbox's "sh -c" processes when
> launching from the menu.  I'm not familiar with writing window managers
> and was wondering why these processes were necessary.  I notice other
> window managers do not use them (fvwm, icewm, windowmaker, etc).  Is
> there some way to eliminate these processes from occurring?  Thanks in
> advance.

I have also wondered about it. One benefit of using "sh -c" is so you can
have multiple commands with arguments, pipes, output redirection all as
part of a blackbox menu [exec] entry.

>From looking at twm source, it appears to do the same thing.

As a workaround, I just added "exec " before the command I want to
start. (I am sure /bin/sh ran, but then the sh process is replaced with
the specified command.)

I guess it would be good to offer it without /bin/sh also, by simply
execing the command with its aruments (but no shell functionality
included).

  Jeremy C. Reed
....................................................
     BSD software, documentation, resources, news...
     http://bsd.reedmedia.net/

Reply via email to