Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: TheTuxKeeper on February 03, 2007, 12:43:21 am

Title: [Linux] Mimetypes not registered in KDE
Post by: TheTuxKeeper on February 03, 2007, 12:43:21 am
There's a problem that the codeblocks mimetypes application/codeblocks and application/codeblocks-workspace aren't registered in KDE. I started nautilus (gnome) and saw nice codeblocks icons and clicking on them opens the project or the workspace in codeblocks. Why doesn't that work with KDE ? :?

The two responsible files are installed correctly, KDE adds cb correctly to the menu, but no mimetype in kcontrol is visible and so no icon, no start of cb when clicking on cb files :(
Code
/usr/share/application-registry/codeblocks.applications
/usr/share/applications/codeblocks.desktop
I've searched through the net, but haven't found anything helpful, till now. :(

Does anyone knows how to get it work or at least know why it doesn't work ?
Title: Re: [Linux] Mimetypes not registered in KDE
Post by: mandrav on February 03, 2007, 09:58:19 am
I would suggest you do the same I did back then: look at the source tarballs of other kde apps that create such bindings ;).
Title: Re: [Linux] Mimetypes not registered in KDE
Post by: TheTuxKeeper on February 03, 2007, 03:43:06 pm
No bad idea  :roll: Thanks for the hint  :D

Seems that kde only uses the freedesktop standard for its menu and not for the mimetypes.  :(

But I think I found a way to do it. I use kde-config --prefix to get the kde directory. the rest is in preparation ;)