diff options
Diffstat (limited to 'trinity-base/quanta/files/externalpreview.sh')
-rw-r--r-- | trinity-base/quanta/files/externalpreview.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/trinity-base/quanta/files/externalpreview.sh b/trinity-base/quanta/files/externalpreview.sh new file mode 100644 index 00000000..f01593ed --- /dev/null +++ b/trinity-base/quanta/files/externalpreview.sh @@ -0,0 +1,18 @@ +#!/bin/bash +#Previews the current document in Mozilla/Netscape/Opera, depending +#on the last two arguments (browsername, newtab command). +#Might be adjusted in the feature to support more browsers. +pid=$1 +currentURL="" +if test $pid == "unique" +then + currentURL=`dcop quanta WindowManagerIf saveCurrentFile` + shift +else + currentURL=`dcop quanta-$pid WindowManagerIf saveCurrentFile` +fi +browser=$2 +newTab=$3 +if test $currentURL ; then + $browser $currentURL +fi |