mirror of
https://github.com/koniu/recoll-webui.git
synced 2025-10-03 01:39:22 +02:00
examples: add opera-open.sh
This commit is contained in:
parent
7c5667b778
commit
901fa379ee
1 changed files with 14 additions and 0 deletions
14
examples/opera-open.sh
Executable file
14
examples/opera-open.sh
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue