Skip to content

Commit

Permalink
examples: add opera-open.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
koniu committed Dec 22, 2012
1 parent 7c5667b commit 901fa37
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/opera-open.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 901fa37

Please sign in to comment.