24 lines
882 B
Text
24 lines
882 B
Text
Index: src/plugins/fts/decode2text.sh
|
|
--- src/plugins/fts/decode2text.sh.orig
|
|
+++ src/plugins/fts/decode2text.sh
|
|
@@ -79,16 +79,16 @@ wait_timeout() {
|
|
LANG=en_US.UTF-8
|
|
export LANG
|
|
if [ $fmt = "pdf" ]; then
|
|
- /usr/bin/pdftotext $path - 2>/dev/null&
|
|
+ /usr/local/bin/pdftotext $path - 2>/dev/null&
|
|
wait_timeout 2>/dev/null
|
|
elif [ $fmt = "doc" ]; then
|
|
- (/usr/bin/catdoc $path; true) 2>/dev/null&
|
|
+ (/usr/local/bin/catdoc $path; true) 2>/dev/null&
|
|
wait_timeout 2>/dev/null
|
|
elif [ $fmt = "ppt" ]; then
|
|
- (/usr/bin/catppt $path; true) 2>/dev/null&
|
|
+ (/usr/local/bin/catppt $path; true) 2>/dev/null&
|
|
wait_timeout 2>/dev/null
|
|
elif [ $fmt = "xls" ]; then
|
|
- (/usr/bin/xls2csv $path; true) 2>/dev/null&
|
|
+ (/usr/local/bin/xls2csv $path; true) 2>/dev/null&
|
|
wait_timeout 2>/dev/null
|
|
elif [ $fmt = "odt" -o $fmt = "ods" -o $fmt = "odp" ]; then
|
|
xmlunzip "content.xml"
|