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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to