summaryrefslogtreecommitdiff
blob: 8fb37569430481ac52d6c44c22e64554ad7a1239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 6c3f73efc0619020a0c17219b1f7e1e3cd49478f Mon Sep 17 00:00:00 2001
From: Johannes Huber <johu@gentoo.org>
Date: Wed, 28 May 2014 16:00:41 +0200
Subject: [PATCH] [startkde] Gentoo FHS script support

---
 startkde/startkde.cmake | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/startkde/startkde.cmake b/startkde/startkde.cmake
index f073b93..1c41364 100644
--- a/startkde/startkde.cmake
+++ b/startkde/startkde.cmake
@@ -206,6 +206,11 @@ for prefix in `echo "$libpath" | sed -n -e 's,/lib[^/]*/,/env/,p'`; do
   done
 done
 
+# Gentoo part for FHS installs
+for file in "@GENTOO_PORTAGE_EPREFIX@/etc/plasma/startup/"*.sh; do
+  test -r "${file}" && . "${file}"
+done
+
 # Set the path for Qt plugins provided by KDE
 QT_PLUGIN_PATH=${QT_PLUGIN_PATH+$QT_PLUGIN_PATH:}`qtpaths --plugin-dir`
 # TODO: Do we really need this?
@@ -411,6 +416,11 @@ for prefix in `echo "$libpath" | sed -n -e 's,/lib[^/]*/,/shutdown/,p'`; do
   done
 done
 
+# Gentoo part for FHS installs
+for file in "@GENTOO_PORTAGE_EPREFIX@/etc/plasma/shutdown/"*.sh; do
+  test -r "${file}" && . "${file}"
+done
+
 unset KDE_FULL_SESSION
 xprop -root -remove KDE_FULL_SESSION
 unset KDE_SESSION_VERSION
-- 
1.9.3