Look properly for all appropriate libexec directories.
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 12 Aug 2007 15:53:30 +0000 (17:53 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 12 Aug 2007 16:01:16 +0000 (18:01 +0200)
config/dc-filter

index 23049eb..1fcb45e 100755 (executable)
@@ -10,7 +10,12 @@ exec 2>>$HOME/dc/filterlog
 cd $HOME/dc
 
 unset speedrecpath
-for dir in /usr/libexec /usr/local/libexec; do
+IFS=: binpath=($PATH)
+lepath=()
+for dir in "${binpath[@]}"; do
+    lepath=("${lepath[@]}" "${dir%/bin}/libexec")
+done
+for dir in "${lepath[@]}" /usr/libexec /usr/local/libexec; do
     if [ -x "${dir}/speedrec" ]; then
        speedrecpath="${dir}/speedrec"
     fi