Commit 7d95bb16 authored by Glen Mével's avatar Glen Mével
Browse files

`dmenu_run_nofork`: a patch to dmenu to avoid useless subprocesses

parent 0dc808cb
#!/bin/sh
# See https://lists.suckless.org/hackers/1908/16958.html
# 2019-08-10 [hackers] [dmenu][patch] avoid some forks in shell scripts
#
# The packaged version of `dmenu_run` (shown below in comment) clutters the
# system with an unnecessary process. This patch removes it. It was proposed
# upstream but Suckless people don’t care. Suck them.
# Original code:
#dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
# Non-forking code:
exec "${SHELL:-"/bin/sh"}" -c `dmenu_path | dmenu "$@"` &
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment