Original von sourcexx
... does someone know if this is possible? e.g. you got a running konq with some open websites and you click a link in a mail or whatever so the link will be opened in a new tab in the allready running konq?
unfortunatelly konqueror still doesn't support --remote option and nor does kfmclient (just plain openURL) to open new tabs like mozilla or opera does...
one possibility i can see: dcop commands in e.g. bash script, but first u have to get dcop name of opened konqueror window:
[code:1]dcop konqueror-*[/code:1]
you will get this: [code:1]konqueror-XXXX[/code:1] (where XXXX = process id)
then you can send a function to the konqueror window using the dcop as follows:
[code:1]dcop konqueror-XXXX 'qt/KXMLGUILClient-KActionCollection/newtab' activate[/code:1]
next u have to fill the location bar using the setProperty:
[code:1]dcop konqueror-XXXX 'qt/konqueror-mainwindow#1/qt_top_dock/locationToolBar/history combo/combo lineedit' setProperty text 'http://www.google.com'[/code:1]
and now we have to only submit the filled URL (just do animateClick :p):
[code:1]dcop konqueror-XXXX 'qt/konqueror-mainwindow#1/qt_top_dock/locationToolBar/toolbutton_go_url' animateClick[/code:1]
more about using dcop u can find here:
http://developer.kde.org/documentation/tutorials/automation/index.html
it's pretty crazy but i hope it's a bit usefull for u...