blob: b2c339b1df03b001a092d29c74cd70022fc1cea6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Index: kded/kbuildsycoca.cpp
===================================================================
--- kded/kbuildsycoca.cpp.orig
+++ kded/kbuildsycoca.cpp
@@ -378,8 +378,12 @@ bool KBuildSycoca::build()
connect(g_vfolder, TQT_SIGNAL(newService(const TQString &, KService **)),
this, TQT_SLOT(slotCreateEntry(const TQString &, KService **)));
-
- VFolderMenu::SubMenu *kdeMenu = g_vfolder->parseMenu("applications.menu", true);
+
+ VFolderMenu::SubMenu *kdeMenu;
+ if ( QFile::exists( "/etc/xdg/menus/applications.menu" ) )
+ kdeMenu = g_vfolder->parseMenu("applications.menu", true);
+ else
+ kdeMenu = g_vfolder->parseMenu("applications.menu.kde", true);
KServiceGroup *entry = g_bsgf->addNew("/", kdeMenu->directoryFile, 0, false);
entry->setLayoutInfo(kdeMenu->layoutList);
|