about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-06-12 10:56:44 +0300
committerNakidai <nakidai@disroot.org>2025-06-12 10:56:44 +0300
commit424f97ea9402aa7e98b7851e432b6ae48e79d729 (patch)
tree2b5d726d0bda2c1eaae5b7e5abcd0a29a65a89ea
parentd21d6255510d296f0decf43a3ffbb1d935b3a957 (diff)
downloadfp-424f97ea9402aa7e98b7851e432b6ae48e79d729.tar.gz
fp-424f97ea9402aa7e98b7851e432b6ae48e79d729.zip
Fix fprun v1.2.1
Syntax of fp has changed so fprun should comply too. Also now it uses
$PATH rather than just /bin
-rwxr-xr-xfprun5
1 files changed, 3 insertions, 2 deletions
diff --git a/fprun b/fprun
index 6893fd3..9873405 100755
--- a/fprun
+++ b/fprun
@@ -7,5 +7,6 @@
 #
 # [1] https://tools.suckless.org/dmenu/
 
-PROG="`fp /bin 10`"
-nohup "$PROG" > /dev/null 2>&1 &
+paths=`printf '%s' "$PATH" | tr ':' ' '` 
+prog="`fp 10 $paths`"
+nohup "$prog" > /dev/null 2>&1 &