Web browser RPC question

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Kurt Granroth
日付:  
題目: Web browser RPC question
On Jan 15, 2004, at 12:53 PM, Vaughn Treude wrote:
> The version is 2.1.1 - old, I know. The distro is Mandrake 8. I'm
> hoping
> to avoid upgrading it if possible because I've got things the way I
> like it.
> Besides, I want to write an app that will work on both KDE2 and KDE3.


Ah.. okay. That explains quite a bit since a number of DCOP interfaces
changed between KDE2 and KDE3. I haven't had a KDE2 system in a very
long time so I can't test anything myself.. however, i did do some
searches online and came up with some stuff.

Apparently a lot of the mainwindow code used to be 'hidden' or at least
it was only instantiated on demand. I found the following snippet of
code that might work for you:

konq=`dcop | grep konqueror | head -1`
dcop $konq default getWindows
mw=`dcop $konq | grep mainwindow | head -1`
dcop $konq $mw openURL http://www.kde.org

Let me know if that works.

Kurt