permit starting an info viewer (info) on an internal gnu info node. This needed a small shell script and a slight modification in how we search from the viewer command in rclmain_w.cpp. The path is now always searched before the filters directory even if useDesktopOpen is set

This commit is contained in:
Jean-Francois Dockes
2010-10-31 10:03:04 +01:00
parent 3e67ba00d4
commit b90a31ad70
4 changed files with 98 additions and 27 deletions
+32
View File
@@ -0,0 +1,32 @@
#!/bin/sh
# A small script to help recoll start info on the node corresponding to
# the result document. The title is the node path, but it needs to be
# somewhat processed
fatal()
{
echo $*
exit 1
}
Usage()
{
fatal "Usage: rclshowinfo filename top node / sub node [/ ...]"
}
test $# -ge 2 || Usage
filename=`echo $1 | sed -e 's!^file://!!'`
shift
# The title set by recoll while indexing is like:
# infofilename / first node path element / second node path element ...
IFS=/
set $*
while test $# -gt 1;do
shift
# node=`echo $1 | sed -e 's/^ *//' -e 's/ *$//'`
node=`eval "echo $1"`
nodepath="$nodepath '$node'"
done
set -x
exec xterm -e "info -f $filename $nodepath"