Ticket #18914: default-kde4-xdg-menu-prefix.patch
File default-kde4-xdg-menu-prefix.patch, 1.3 KB (added by jeremy.laine@…, 15 years ago) |
---|
-
kded/CMakeLists.txt
Patch borrowed from Debian's kde4libs package.
a b 69 69 if (WIN32) 70 70 install( FILES applications.menu DESTINATION ${SHARE_INSTALL_PREFIX}/xdg/menus ) 71 71 else (WIN32) 72 install( FILES applications.menu DESTINATION ${SYSCONF_INSTALL_DIR}/xdg/menus )72 install( FILES applications.menu DESTINATION ${SYSCONF_INSTALL_DIR}/xdg/menus RENAME kde4-applications.menu ) 73 73 endif (WIN32) 74 74 install( FILES kdedmodule.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} ) 75 75 install( FILES kded.upd DESTINATION ${DATA_INSTALL_DIR}/kconf_update ) -
kded/vfolder_menu.cpp
a b 770 770 QString result; 771 771 772 772 QString xdgMenuPrefix = QString::fromLocal8Bit(qgetenv("XDG_MENU_PREFIX")); 773 if (!xdgMenuPrefix.isEmpty()) 774 { 773 // enforce kde4 prefix unless XDG_MENU_PREFIX is set (LP: #297195) 774 if (xdgMenuPrefix.isEmpty()) 775 xdgMenuPrefix = QString("kde4-"); 776 775 777 QFileInfo fileInfo(fileName); 776 778 777 779 QString fileNameOnly = fileInfo.fileName(); … … 781 783 QString baseName = QDir::cleanPath(m_docInfo.baseDir + 782 784 fileInfo.path() + '/' + fileNameOnly); 783 785 result = KStandardDirs::locate("xdgconf-menu", baseName); 784 }785 786 786 787 if (result.isEmpty()) 787 788 {