blob: 228914fbb82c5f352a91bcc6f51adf5af5ac7615 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Set XDG_MENU_PREFIX to kde-4- if not set. This fixes "empty-applications-menu" when running
KDE4 applications outside of KDE4 environment.
Index: kded/vfolder_menu.cpp
===================================================================
--- kded/vfolder_menu.cpp (revision 1014368)
+++ kded/vfolder_menu.cpp (working copy)
@@ -770,7 +770,9 @@
QString result;
QString xdgMenuPrefix = QString::fromLocal8Bit(qgetenv("XDG_MENU_PREFIX"));
- if (!xdgMenuPrefix.isEmpty())
+ if (xdgMenuPrefix.isEmpty())
+ xdgMenuPrefix = "kde-4-";
+
{
QFileInfo fileInfo(fileName);
|