git.iko.soy/typeable/nixpkgs
on master help sign in
plasma-5.3: run startkde with `set -x`
commit7d2e419597bc2a716f1d8386eb44c4a662f5e8dc authorThomas Tuegel <ttuegel@gmail.com> dateTue 2 Jun 2015, 16:23 (12 years ago) parentf0fb53e
1 file changed+22−20
pkgs/desktops/plasma-5.3/plasma-workspace/0001-startkde-NixOS-patches.patch+22−20
pkgs/desktops/plasma-5.3/plasma-workspace/0001-startkde-NixOS-patches.patch+22−20
@@ -1,23 +1,25 @@
1−From 9aa37de6cd887c6cdd7ea2356cbb6aecdb988b75 Mon Sep 17 00:00:00 2001
1+From 37abdee4e25f6aff55da838864d1a67a7be758ad Mon Sep 17 00:00:00 2001
22From: Thomas Tuegel <ttuegel@gmail.com>
3−Date: Sun, 3 May 2015 14:51:04 -0500
3+Date: Tue, 2 Jun 2015 11:21:43 -0500
44Subject: [PATCH] startkde: NixOS patches
55
66---
7− startkde/startkde.cmake | 212 +++++++++++++++++++-----------------------------
8− 1 file changed, 85 insertions(+), 127 deletions(-)
7+ startkde/startkde.cmake | 214 ++++++++++++++++++++----------------------------
8+ 1 file changed, 87 insertions(+), 127 deletions(-)
99
1010diff --git a/startkde/startkde.cmake b/startkde/startkde.cmake
11−index 24e5c1b..d8642d3 100644
11+index 24e5c1b..787d719 100644
1212--- a/startkde/startkde.cmake
1313+++ b/startkde/startkde.cmake
14−@@ -1,8 +1,29 @@
14+@@ -1,8 +1,31 @@
1515-#!/bin/sh
1616+#!@bash@/bin/bash
1717 #
1818 # DEFAULT KDE STARTUP SCRIPT ( @PROJECT_VERSION@ )
1919 #
2020
21++set -x
22++
2123+# The KDE icon cache is supposed to update itself
2224+# automatically, but it uses the timestamp on the icon
2325+# theme directory as a trigger. Since in Nix the
@@ -42,7 +44,7 @@ index 24e5c1b..d8642d3 100644
4244 if test "x$1" = x--failsafe; then
4345 KDE_FAILSAFE=1 # General failsafe flag
4446 KWIN_COMPOSE=N # Disable KWin's compositing
45−@@ -16,29 +37,16 @@ trap 'echo GOT SIGHUP' HUP
47+@@ -16,29 +39,16 @@ trap 'echo GOT SIGHUP' HUP
4648 # we have to unset this for Darwin since it will screw up KDE's dynamic-loading
4749 unset DYLD_FORCE_FLAT_NAMESPACE
4850
@@ -75,7 +77,7 @@ index 24e5c1b..d8642d3 100644
7577 fi
7678
7779 # Boot sequence:
78−@@ -56,13 +64,8 @@ fi
80+@@ -56,13 +66,8 @@ fi
7981 # * Then ksmserver is started which takes control of the rest of the startup sequence
8082
8183 # We need to create config folder so we can write startupconfigkeys
@@ -91,7 +93,7 @@ index 24e5c1b..d8642d3 100644
9193
9294 #This is basically setting defaults so we can use them with kstartupconfig5
9395 cat >$configDir/startupconfigkeys <<EOF
94−@@ -106,53 +109,19 @@ toolBarFont=Oxygen-Sans,9,-1,5,50,0,0,0,0,0
96+@@ -106,53 +111,19 @@ toolBarFont=Oxygen-Sans,9,-1,5,50,0,0,0,0,0
9597 EOF
9698 }
9799
@@ -148,7 +150,7 @@ index 24e5c1b..d8642d3 100644
148150
149151 kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize"
150152 if test $? -eq 10; then
151−@@ -168,15 +137,33 @@ if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize"
153+@@ -168,15 +139,33 @@ if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize"
152154 fi
153155 fi
154156
@@ -187,7 +189,7 @@ index 24e5c1b..d8642d3 100644
187189 ksplash_pid=
188190 if test -z "$dl"; then
189191 # the splashscreen and progress indicator
190−@@ -205,8 +192,7 @@ fi
192+@@ -205,8 +194,7 @@ fi
191193 # For anything else (that doesn't set env vars, or that needs a window manager),
192194 # better use the Autostart folder.
193195
@@ -197,7 +199,7 @@ index 24e5c1b..d8642d3 100644
197199
198200 # Add /env/ to the directory to locate the scripts to be sourced
199201 for prefix in `echo $scriptpath`; do
200−@@ -216,7 +202,7 @@ for prefix in `echo $scriptpath`; do
202+@@ -216,7 +204,7 @@ for prefix in `echo $scriptpath`; do
201203 done
202204
203205 # Set the path for Qt plugins provided by KDE
@@ -206,7 +208,7 @@ index 24e5c1b..d8642d3 100644
206208 # TODO: Do we really need this?
207209 QT_PLUGIN_PATH=$QT_PLUGIN_PATH:$kdehome/lib/kde5/plugins/
208210 export QT_PLUGIN_PATH
209−@@ -242,7 +228,7 @@ usr_odir=$HOME/.fonts/kde-override
211+@@ -242,7 +230,7 @@ usr_odir=$HOME/.fonts/kde-override
210212 usr_fdir=$HOME/.fonts
211213
212214 if test -n "$KDEDIRS"; then
@@ -215,7 +217,7 @@ index 24e5c1b..d8642d3 100644
215217 sys_odir=$kdedirs_first/share/fonts/override
216218 sys_fdir=$kdedirs_first/share/fonts
217219 else
218−@@ -255,23 +241,13 @@ fi
220+@@ -255,23 +243,13 @@ fi
219221 # add the user's dirs to the font path, as they might simply have been made
220222 # read-only by the administrator, for whatever reason.
221223
@@ -244,7 +246,7 @@ index 24e5c1b..d8642d3 100644
244246
245247 # Get Ghostscript to look into user's KDE fonts dir for additional Fontmap
246248 if test -n "$GS_LIB" ; then
247−@@ -284,30 +260,6 @@ fi
249+@@ -284,30 +262,6 @@ fi
248250
249251 echo 'startkde: Starting up...' 1>&2
250252
@@ -275,7 +277,7 @@ index 24e5c1b..d8642d3 100644
275277 # Mark that full KDE session is running (e.g. Konqueror preloading works only
276278 # with full KDE running). The KDE_FULL_SESSION property can be detected by
277279 # any X client connected to the same X session, even if not launched
278−@@ -332,11 +284,11 @@ fi
280+@@ -332,11 +286,11 @@ fi
279281 #
280282 KDE_FULL_SESSION=true
281283 export KDE_FULL_SESSION
@@ -289,7 +291,7 @@ index 24e5c1b..d8642d3 100644
289291
290292 KDE_SESSION_UID=`id -ru`
291293 export KDE_SESSION_UID
292−@@ -346,30 +298,36 @@ export XDG_CURRENT_DESKTOP
294+@@ -346,30 +300,36 @@ export XDG_CURRENT_DESKTOP
293295
294296 # At this point all the environment is ready, let's send it to kwalletd if running
295297 if test -n "$PAM_KWALLET_LOGIN" ; then
@@ -331,7 +333,7 @@ index 24e5c1b..d8642d3 100644
331333 # finally, give the session control to the session manager
332334 # see kdebase/ksmserver for the description of the rest of the startup sequence
333335 # if the KDEWM environment variable has been set, then it will be used as KDE's
334−@@ -385,27 +343,27 @@ test -n "$KDEWM" && KDEWM="--windowmanager $KDEWM"
336+@@ -385,27 +345,27 @@ test -n "$KDEWM" && KDEWM="--windowmanager $KDEWM"
335337 # lock now and do the rest of the KDE startup underneath the locker.
336338 KSMSERVEROPTIONS=""
337339 test -n "$dl" && KSMSERVEROPTIONS=" --lockscreen"
@@ -366,7 +368,7 @@ index 24e5c1b..d8642d3 100644
366368 done
367369 break
368370 fi
369−@@ -417,21 +375,21 @@ echo 'startkde: Shutting down...' 1>&2
371+@@ -417,21 +377,21 @@ echo 'startkde: Shutting down...' 1>&2
370372 test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null
371373
372374 # Clean up
@@ -393,5 +395,5 @@ index 24e5c1b..d8642d3 100644
393395
394396 echo 'startkde: Done.' 1>&2
395397--
396−2.3.6
398+2.4.1
397399