···1-From 37abdee4e25f6aff55da838864d1a67a7be758ad Mon Sep 17 00:00:00 2001
2From: Thomas Tuegel <ttuegel@gmail.com>
3Date: Tue, 2 Jun 2015 11:21:43 -0500
4Subject: [PATCH] startkde: NixOS patches
56---
7- startkde/startkde.cmake | 214 ++++++++++++++++++++----------------------------
8- 1 file changed, 87 insertions(+), 127 deletions(-)
910diff --git a/startkde/startkde.cmake b/startkde/startkde.cmake
11-index 24e5c1b..787d719 100644
12--- a/startkde/startkde.cmake
13+++ b/startkde/startkde.cmake
14@@ -1,8 +1,31 @@
···9394 #This is basically setting defaults so we can use them with kstartupconfig5
95 cat >$configDir/startupconfigkeys <<EOF
96-@@ -106,53 +111,19 @@ toolBarFont=Oxygen-Sans,9,-1,5,50,0,0,0,0,0
97 EOF
98 }
99···148 if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize" ; then
149- @EXPORT_XCURSOR_PATH@
150151- kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize"
0152 if test $? -eq 10; then
153-@@ -168,15 +139,33 @@ if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize"
00154 fi
155 fi
156···175+# Make sure that D-Bus is running
176+# D-Bus autolaunch is broken
177+if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
178-+ eval `@dbus_tools@/dbus-launch --sh-syntax --exit-with-session`
179+fi
180+if @qt5tools@/bin/qdbus >/dev/null 2>/dev/null; then
181+ : # ok
···189 ksplash_pid=
190 if test -z "$dl"; then
191 # the splashscreen and progress indicator
0000000192@@ -205,8 +194,7 @@ fi
193 # For anything else (that doesn't set env vars, or that needs a window manager),
194 # better use the Autostart folder.
···1+From ff61c8ba856328a60e29938466b69d0bb38a357f Mon Sep 17 00:00:00 2001
2From: Thomas Tuegel <ttuegel@gmail.com>
3Date: Tue, 2 Jun 2015 11:21:43 -0500
4Subject: [PATCH] startkde: NixOS patches
56---
7+ startkde/startkde.cmake | 218 ++++++++++++++++++++----------------------------
8+ 1 file changed, 89 insertions(+), 129 deletions(-)
910diff --git a/startkde/startkde.cmake b/startkde/startkde.cmake
11+index 24e5c1b..e7bdd32 100644
12--- a/startkde/startkde.cmake
13+++ b/startkde/startkde.cmake
14@@ -1,8 +1,31 @@
···9394 #This is basically setting defaults so we can use them with kstartupconfig5
95 cat >$configDir/startupconfigkeys <<EOF
96+@@ -106,55 +111,21 @@ toolBarFont=Oxygen-Sans,9,-1,5,50,0,0,0,0,0
97 EOF
98 }
99···148 if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize" ; then
149- @EXPORT_XCURSOR_PATH@
150151+- kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize"
152++ @kde_workspace@/bin/kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize"
153 if test $? -eq 10; then
154+ XCURSOR_THEME=breeze_cursors
155+ export XCURSOR_THEME
156+@@ -168,21 +139,39 @@ if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize"
157 fi
158 fi
159···178+# Make sure that D-Bus is running
179+# D-Bus autolaunch is broken
180+if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
181++ eval `@dbus_tools@/bin/dbus-launch --sh-syntax --exit-with-session`
182+fi
183+if @qt5tools@/bin/qdbus >/dev/null 2>/dev/null; then
184+ : # ok
···192 ksplash_pid=
193 if test -z "$dl"; then
194 # the splashscreen and progress indicator
195+ case "$ksplashrc_ksplash_engine" in
196+ KSplashQML)
197+- ksplash_pid=`ksplashqml "${ksplashrc_ksplash_theme}" --pid`
198++ ksplash_pid=`@out@/bin/ksplashqml "${ksplashrc_ksplash_theme}" --pid`
199+ ;;
200+ None)
201+ ;;
202@@ -205,8 +194,7 @@ fi
203 # For anything else (that doesn't set env vars, or that needs a window manager),
204 # better use the Autostart folder.