Windows start menu item support for kickoff, part 2

Ralf Habacker ralf.habacker at freenet.de
Thu Jun 11 16:47:56 CEST 2009


Fabian Aichele schrieb:
> Hello!
>
> Summing up the various responses received after submitting my small addition 
> to kickoff under Windows, I'd like to ask for some further advice on how to 
> better integrate this feature into KDE.
>
> Keeping this kickoff-specific clearly is not an optimal solution, and I 
> hadn't intended to leave it this way. My problem is that I don't know enough 
> about the internals of the KDE core to devise the best approach myself.
> ksycoca and vfolder_menu are definitely good candidates for further 
> modifications; but apart from that, I wouldn't know where to look as well, 
> for example when it comes to the "dynamic" conversion of Windows' file 
> extension schema to KDE's .desktop files.
>
> If anyone is willing to give further advice, or even help me with the more 
> advanced features (like icon extraction), let me know!
>   
The icon can be extracted by some win32 api functions. You may take a 
look at the following resource file class 
http://websvn.kde.org/trunk/kdesupport/kdewin32/tools/mt/resourcefile.h?view=markup 
to get an idea how to do.
If you like to extend this class for additional types, we can place it 
later into the kdewin package, so that other can use it too.

Qt has already an ico image format plugin, which mean that Qt can create 
a QImage or QPixmap from it.
So the name of the related icon may be directly usable in KDesktopfiles. 
I haven't checked this for real - you may try this first by hand.

Ralf



More information about the Kde-windows mailing list