From db55baf722bcfa6238f02152b9c236c10d8de03d Mon Sep 17 00:00:00 2001 From: q3aql Date: Mon, 30 May 2022 15:35:11 +0200 Subject: [PATCH] Disable ignore /bin by default (dmenu_run) --- dmenu_run | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/dmenu_run b/dmenu_run index afa0ce6..419fa37 100755 --- a/dmenu_run +++ b/dmenu_run @@ -16,13 +16,15 @@ list_binaries() { if [ -z "${current_path}" ] ; then binaries=1 else - # Extra code - if [ "${current_path}" == "/bin" ] ; then - count_path=$(expr ${count_path} + 1) - else - ls -1 ${current_path}/ - count_path=$(expr ${count_path} + 1) - fi + # Extra code / When /bin is the same that /usr/bin/ + #if [ "${current_path}" == "/bin" ] ; then + # count_path=$(expr ${count_path} + 1) + #else + # ls -1 ${current_path}/ + # count_path=$(expr ${count_path} + 1) + #fi + ls -1 ${current_path}/ + count_path=$(expr ${count_path} + 1) fi done }