Interfacing with KDE ?

Gav Wood gav at kde.org
Sat Nov 1 19:34:43 GMT 2003


On Sunday 26 October 2003 14:23, David Faure wrote:
> On Sunday 26 October 2003 13:28, Helge Deller wrote:
> > I'm trying to help a friend to make his Java program more KDE-friendly.
> >
> > In this regard, I'm interested, if there maybe is a _documented_ or
> > _official_ way (DCOP would be possible) to figure out if KDE (or even
> > GNOME?) is currently running and then preferably a DCOP call to execute
> > the application associated with the filetype, e.g. something like
> > a DCOP-call: kdeexec("readme.txt");
> > I found "kfmclient exec readme.txt" to be possible, but maybe an existing
> > DCOP function could speed it up.
>
> If the mimetype isn't known before hand, you need a KRun instance.
> "kfmclient exec" does just that, it runs a KRun for you.
> In your idea, you'd need some already-running process to do it - but
> there's no such thing yet (not sure what you play that role... even
> kdesktop might not be running, in some strange setups). OTOH kfmclient exec
> will always work. I think it's the best solution.

what about using klauncher?

gav
-- 
Gav Wood <gav at kde.org> http://www.indigoarchive.net/gav/

codito ergo non satis bibivi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031101/14740c32/attachment.sig>


More information about the kde-core-devel mailing list