diff options
Diffstat (limited to 'trinity-base/kdelibs/files/kdelibs-3.5.13.1-fix-insane-kde4-variables.patch')
-rw-r--r-- | trinity-base/kdelibs/files/kdelibs-3.5.13.1-fix-insane-kde4-variables.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/trinity-base/kdelibs/files/kdelibs-3.5.13.1-fix-insane-kde4-variables.patch b/trinity-base/kdelibs/files/kdelibs-3.5.13.1-fix-insane-kde4-variables.patch new file mode 100644 index 00000000..2247b898 --- /dev/null +++ b/trinity-base/kdelibs/files/kdelibs-3.5.13.1-fix-insane-kde4-variables.patch @@ -0,0 +1,13 @@ +diff --git a/kio/kio/kservice.cpp b/kio/kio/kservice.cpp +index 4964103..368fe9a 100644 +--- a/kio/kio/kservice.cpp ++++ b/kio/kio/kservice.cpp +@@ -198,7 +198,7 @@ KService::init( KDesktopFile *config ) + + m_strExec = config->readPathEntry( "Exec" ); + if (kde4application && !m_strExec.startsWith("/")) { +- m_strExec = "KDEHOME=$HOME/.kde XDG_DATA_DIRS=/usr/share KDEDIRS=/usr/ XDG_CONFIG_DIRS=/etc/xdg/ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$PATH "+m_strExec; ++ m_strExec = "KDEHOME=$HOME/.kde4 XDG_DATA_DIRS=/usr/share KDEDIRS=/usr/ XDG_CONFIG_DIRS=/etc/xdg/ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$PATH "+m_strExec; + } else if (config->readBoolEntry("X-KDE-SubstituteUID")) { + int space = m_strExec.find(" "); + if (space==-1) |