Firefox Bookmark runner

Aaron J. Seigo aseigo at kde.org
Wed Nov 4 21:45:08 CET 2009


On November 4, 2009, Jan Gerrit Marker wrote:
> 1) Where should I copy Firefox's database file? I think somewhere to a
>  cache directory, but I haven't got any idea, how to get a filepath or how
>  to do this exactly.

KGlobal::dirs()->locateLocale("cache", filename);

or you could use a KTempFile ...

> 2) How do I get the default browser?

looking at 
kdebase/runtime/kcontrol/componentchooser/componentchooserbrowser.cpp it's 
apparently in kdeglobals' [General] group as BrowserApplication=

looking at krun.cpp there doesn't seem to be any convenience API for that.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20091104/ec55f17d/attachment.sig 


More information about the Plasma-devel mailing list