On Thu, Sep 12, 2024 at 05:44:22AM +0200, Steffen Nurpmeso wrote:
> Ok, sorry, but one final (hopefully) question.
>
> dmenu_run does "xy | /bin/sh &".
> Like this the thing then is owned by PID 1.
> I use (instead of dmenu_run)
>
> : ${LINES:=30}
> cmd=$(<< '_EOT' dmenu -l $((LINES - LINES/10)) "$_AT_"
> # Browse
> /bin/sh -c 'touch /run/user/$(id -u)/box-browse/root/#'
> doas /x/pub/box-web.sh browse firefox
> ...
> _EOT
> )
> exec ${SHELL:-"/bin/sh"} -c "$cmd"
>
> Like this "$cmd" is owned by dwm.
> I only wonder *why* this is backgrounded.
> Thank you.
>
> --steffen
> |
> |Der Kragenbaer, The moon bear,
> |der holt sich munter he cheerfully and one by one
> |einen nach dem anderen runter wa.ks himself off
> |(By Robert Gernhardt)
>
You could use setsid if you want or dont want.
--
Kind regards,
Hiltjo
Received on Fri Sep 13 2024 - 11:29:28 CEST