#!/bin/sh
KONQ_WIN=`dcop konq* | head -1`
if [ "$KONQ_WIN" = "" ]; then
/usr/local/bin/konqueror $1 &
else
NEW_TAB=`dcop $KONQ_WIN konqueror-mainwindow#1 action newtab`
dcop $NEW_TAB activate
dcop $KONQ_WIN konqueror-mainwindow#1 openURL $1
fi
return 0
Nice, thank you!
ReplyDeleteYou probably should quote that asterisk after konq, to prevent it from shell expansion.
ReplyDelete