[dev] Patch for dmenu_path - pass -maxdepth 1 to find(1)

From: Troels Henriksen <athas_AT_sigkill.dk>
Date: Mon, 06 Jun 2011 23:10:32 +0200

If . is part of your PATH (leaving aside questions of whether this is a
good idea), dmenu_path can be very slow, as it searches the entire tree
from the working directory for binaries, despite the fact that only
those immediately in the directory matter. The following patch passes
-maxdepth 1 to the find(1) invocations, such that the search is no
deeper than actually needed to reflect the state of the PATH.

\  Troels
/\ Henriksen
Received on Mon Jun 06 2011 - 23:10:32 CEST

This archive was generated by hypermail 2.2.0 : Mon Jun 06 2011 - 23:12:02 CEST