Hi,

Since the Konqueror option 'Open as tab in existing Konqueror when URL is 
called externally' does not work with Ion, since Konqueror can't find its own 
instance in Ion properly I wrote this small script which helps to fulfill the 
wanted behavior:
-----------------
> cat bin/open_in_new_tab.sh

#! /usr/bin/env sh

FIRST_KONQ=`dcop 'konqueror-*' | head -n 1`

if [ ! -z "$FIRST_KONQ" ]; then
        dcop $FIRST_KONQ konqueror-mainwindow\#1 newTab "$1"
else
        konqueror "$1" &
fi
---------------------

If you then change 'Web browser' in kontrol->KDE components->Component chooser 
to the script (after making it executable), you can open a link from KMail 
for example in the first existing konqueror window.

It worked for me for some time now, but it might have problems with hidden 
preloaded instances, then a call to:
dcop $FIRST_KONQ konqueror-mainwindow\#1 show
should help after the line of creating a new tab

hope this is helpfull for some KDE folks here,
-- 
Martin Stubenschrott <stubenschrott (at) gmx (dot) net>

Reply via email to