kded: prefix the applications menu with kde-

according to the spec it may be prefixed, if it is XDG_MENU_PREFIX must
be exported (which matters not to Katana since the main application menu
file is hardcoded anyway). for reference:
https://specifications.freedesktop.org/menu-spec/menu-spec-1.0.html

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-12-22 01:04:49 +02:00
parent a4ac5fbb46
commit 890dfa808d
3 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ install(TARGETS kbuildsycoca4 ${INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ############### ########### install files ###############
install( install(
FILES applications.menu FILES kde-applications.menu
DESTINATION ${KDE4_SYSCONF_INSTALL_DIR}/xdg/menus DESTINATION ${KDE4_SYSCONF_INSTALL_DIR}/xdg/menus
) )

View file

@ -307,7 +307,7 @@ bool KBuildSycoca::build()
if (!m_trackId.isEmpty()) if (!m_trackId.isEmpty())
g_vfolder->setTrackId(m_trackId); g_vfolder->setTrackId(m_trackId);
VFolderMenu::SubMenu *kdeMenu = g_vfolder->parseMenu("applications.menu"); VFolderMenu::SubMenu *kdeMenu = g_vfolder->parseMenu("kde-applications.menu");
KServiceGroup::Ptr entry = g_buildServiceGroupFactory->addNew("/", kdeMenu->directoryFile, KServiceGroup::Ptr(), false); KServiceGroup::Ptr entry = g_buildServiceGroupFactory->addNew("/", kdeMenu->directoryFile, KServiceGroup::Ptr(), false);
entry->setLayoutInfo(kdeMenu->layoutList); entry->setLayoutInfo(kdeMenu->layoutList);