[3.5 branch] need help with XDG menu implementation problem
Kevin Krammer
kevin.krammer at gmx.at
Tue Nov 7 13:44:20 GMT 2006
Hi,
I'd like to ask for help regarding an issue with the implementation of the
freedesktop.org menu spec in KDE.
About two weeks ago I discovered that a Debian patch broke the correct
handling of XDG menus, because it made it use kde-applications-merged instead
of applications-merged which, according to the menu spec, must be used even
if the applications.menu file is prefixed with a desktop specific identifier
(e.g. "kde-")
The packagers reverted that patch. but now a couple of other things go wrong.
:(
In kdelibs/kded/vfolder_menu.cpp I found something like this:
m_defaultMergeDirs << m_docInfo.baseName+"-merged/";
By also looking at an strace of kbuildsycoca I gather that "baseName" is at
one time "kde-applications" (from kde-applications.menu) and so kbuildsycoca
looks at a directory which doesn't exist.
According to the menu spec there is an environment variable called
XDG_MENU_PREFIX which is supposed to be used in cases where GNOME, KDE and
others need different menus.
Not sure if a correct solution would be to strip XDG_MENU_PREFIX from baseName
or if m_defaultMergeDirs should contain both directories.
Cheers,
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20061107/a0e41298/attachment.sig>
More information about the kde-core-devel
mailing list