KServiceGroup question

Benjamin Meyer ben at meyerhome.net
Fri Jul 23 02:58:21 BST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I copied kde-settings.directory and kde-settings.menu file and renamed them to 
kde-test.directory and kde-test.menu.

In the kde-test.directory file I change X-KDE-BaseGroup=settings to =test

and installed them in the same place (in debian) where the kde-settings files 
where installed.

kde-test.directory -> /usr/share/desktop-directories/
kde-test.menu -> /etc/xdg/menus/

I ran kbuildsycoca to regenerate the files/cache

But when I try to get the group with this one line of code:

KServiceGroup::Ptr p = KServiceGroup::baseGroup( "test" );

p is always null.  If I change test to "settings" or "info" or "screensavers" 
it works fine.  

What am I missing?  Is this documented anywhere?  I found lots of docs 
describing the many different standards, but I didn't find any "build your 
own app with KServiceGroup" howto docs that goes through the steps one by one 
explaining what is required.

Any pointers?

- -Benjamin Meyer  

- -- 
aka icefox
Public Key: http://www.csh.rit.edu/~benjamin/public_key.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBAHC/1rZ3LTw38vIRAsQ5AJ9gkAAIjeX6QXo3/691UjwKPrHBuQCeJ1FL
IXWyCvCJySpBgtmDBMVUZ2E=
=SB36
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list