1
0
Fork 0
mirror of https://github.com/koniu/recoll-webui.git synced 2025-10-03 09:49:25 +02:00

examples: add opera-open.sh

This commit is contained in:
koniu 2012-12-22 20:18:51 +00:00
parent 7c5667b778
commit 901fa379ee

14
examples/opera-open.sh Executable file
View file

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