lists.zerezo.com



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

***BOGO*** Re: How to get the icon theme used by kde from a non-kde program?



On Wednesday 27 August 2008, Dong Tiger wrote:
> Hi,
>
> I have to get this information from a non-kde program so as to keep the
> appearance consistent. Does anyone know how to do it?

I think using out config command line tool it would be this:

% kreadconfig --file kdeglobals --group Icons --key Theme --default oxygen

Which basically means (assuming the default INI-file backend) one of KDE's 
config files named "kdeglobals", a group labelled "[Icons]" and a key 
named "Theme", defaulting to "oxygen" if the field is empty.

We could probably add a D-Bus interface (if it doesn't exist already) for 
doing the same read without external tool invokation.

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

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

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<