Switch to unified view

a b/examples/opera-open.sh
1
#!/bin/sh
2
# To open local file:// links from recoll-webui in Opera:
3
#
4
# 1. Save this file somewhere in your PATH (eg. /usr/local/bin)
5
# 2. Go to Tools > Preferences > Advanced > Programs > Add
6
# 3. In "Protocol" field enter "local-file"
7
# 4. Select "Open with other application" and enter 'opera-open.sh'
8
# 5. In recoll webui settings replace all 'file://' with 'local-file://'
9
10
HANDLER="opera"
11
PROTOCOL="local-file:\/\/"
12
REPLACEMENT="file:\/\/localhost"
13
URL=`echo $@ | sed -e "s/$PROTOCOL/$REPLACE/"`
14
$HANDLER "$URL"