Interfacing with KDE ?

David Faure dfaure at klaralvdalens-datakonsult.se
Sat Nov 1 20:07:45 GMT 2003


On Saturday 01 November 2003 20:34, Gav Wood wrote:
> 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?

KRun uses klauncher internally (via KApplication::startServiceBy...). 
But you need to know *what* to launch first, that's what KRun does.

-- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions




More information about the kde-core-devel mailing list