From 477c0419b4a06b286bf09405e44c5fdc36e44b2f Mon Sep 17 00:00:00 2001 From: adnano Date: Thu, 2 May 2024 21:40:46 -0400 Subject: Remove wmenu_run script --- meson.build | 2 -- wmenu_run | 35 ----------------------------------- 2 files changed, 37 deletions(-) delete mode 100755 wmenu_run diff --git a/meson.build b/meson.build index 552e1f8..6a745aa 100644 --- a/meson.build +++ b/meson.build @@ -33,8 +33,6 @@ rt = cc.find_library('rt') subdir('protocols') subdir('docs') -install_data('wmenu_run', install_dir: get_option('bindir')) - executable( 'wmenu', files( diff --git a/wmenu_run b/wmenu_run deleted file mode 100755 index b243b38..0000000 --- a/wmenu_run +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}" -cache="$cachedir/wmenu_run" - -[ -d "$cachedir" ] || mkdir -p "$cachedir" - -uptodate() { - [ -f "$cache" ] || return 1 - IFS=: - for path in $PATH; do - # non-POSIX - test "$path" -nt "$cache" && return 1 - done - return 0 -} - -bins() { - IFS=: - for path in $PATH; do - for bin in "$path"/*; do - [ -x "$bin" ] && echo "${bin##*/}" - done - done -} - -path() { - if uptodate; then - cat "$cache" - else - bins | sort -u | tee "$cache" - fi -} - -path | wmenu "$@" | ${SHELL:-"/bin/sh"} & -- cgit v1.2.3