@@ -8,7 +8,7 @@ index 7e2d9758..40a5797b 100644
88 import org.kde.kcoreaddons 1.0 as KCoreAddons
99-import "logic.js" as Logic
1010+import "../code/logic.js" as Logic
11−
11+
1212 Item {
1313 id: batteryItem
1414diff --git a/applets/batterymonitor/package/contents/ui/batterymonitor.qml b/applets/batterymonitor/package/contents/ui/batterymonitor.qml
@@ -21,7 +21,7 @@ index ae6d5919..c2f99c86 100644
2121 import org.kde.kquickcontrolsaddons 2.0
2222-import "logic.js" as Logic
2323+import "../code/logic.js" as Logic
24−
24+
2525 Item {
2626 id: batterymonitor
2727diff --git a/applets/lock_logout/contents/ui/lockout.qml b/applets/lock_logout/contents/ui/lockout.qml
@@ -34,7 +34,7 @@ index 80e7e53b..0083cf01 100644
3434 import org.kde.kquickcontrolsaddons 2.0
3535-import "data.js" as Data
3636+import "../code/data.js" as Data
37−
37+
3838 Flow {
3939 id: lockout
4040diff --git a/applets/notifications/package/contents/ui/main.qml b/applets/notifications/package/contents/ui/main.qml
@@ -42,12 +42,12 @@ index acdda88f..989de8ab 100644
4242--- a/applets/notifications/package/contents/ui/main.qml
4343+++ b/applets/notifications/package/contents/ui/main.qml
4444@@ -28,7 +28,7 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras
45−
45+
4646 import org.kde.plasma.private.notifications 1.0
47−
47+
4848-import "uiproperties.js" as UiProperties
4949+import "../code/uiproperties.js" as UiProperties
50−
50+
5151 MouseEventListener {
5252 id: notificationsApplet
5353diff --git a/krunner/dbus/org.kde.krunner.service.in b/krunner/dbus/org.kde.krunner.service.in
@@ -59,7 +59,7 @@ index 85715214..294eab08 100644
5959 Name=org.kde.krunner
6060-Exec=@CMAKE_INSTALL_PREFIX@/bin/krunner
6161+Exec=@CMAKE_INSTALL_FULL_BINDIR@/krunner
62−
62+
6363diff --git a/kuiserver/org.kde.kuiserver.service.in b/kuiserver/org.kde.kuiserver.service.in
6464index 7a86d07f..5b3030cc 100644
6565--- a/kuiserver/org.kde.kuiserver.service.in
@@ -76,7 +76,7 @@ index fe29f57a..247db953 100644
7676@@ -3,11 +3,6 @@ add_subdirectory(kstartupconfig)
7777 add_subdirectory(ksyncdbusenv)
7878 add_subdirectory(waitforname)
79−
79+
8080-#FIXME: reconsider, looks fishy
8181-if(NOT CMAKE_INSTALL_PREFIX STREQUAL "/usr")
8282- set(EXPORT_XCURSOR_PATH "XCURSOR_PATH=${CMAKE_INSTALL_PREFIX}/share/icons:$XCURSOR_PATH\":~/.icons:/usr/share/icons:/usr/share/pixmaps:/usr/X11R6/lib/X11/icons\"; export XCURSOR_PATH")
@@ -106,7 +106,7 @@ index e9fa0bee..79e50a96 100644
106106-# DEFAULT Plasma STARTUP SCRIPT ( @PROJECT_VERSION@ )
107107+# NIXPKGS KDE STARTUP SCRIPT ( @PROJECT_VERSION@ )
108108 #
109−
109+
110110+if test "x$1" = x--failsafe; then
111111+ KDE_FAILSAFE=1 # General failsafe flag
112112+ KWIN_COMPOSE=N # Disable KWin's compositing
@@ -117,7 +117,7 @@ index e9fa0bee..79e50a96 100644
117117 # When the X server dies we get a HUP signal from xinit. We must ignore it
118118 # because we still need to do some cleanup.
119119 trap 'echo GOT SIGHUP' HUP
120−
120+
121121-# Check if a Plasma session already is running and whether it's possible to connect to X
122122-kcheckrunning
123123+# we have to unset this for Darwin since it will screw up KDE's dynamic-loading
@@ -140,12 +140,12 @@ index e9fa0bee..79e50a96 100644
140140+ echo "\$DISPLAY is not set or cannot connect to the X server."
141141+ exit 1
142142 fi
143−
143+
144144 # Boot sequence:
145145@@ -33,59 +42,132 @@ fi
146146 #
147147 # * Then ksmserver is started which takes control of the rest of the startup sequence
148−
148+
149149-# We need to create config folder so we can write startupconfigkeys
150150-if [ ${XDG_CONFIG_HOME} ]; then
151151- configDir=$XDG_CONFIG_HOME;
@@ -174,7 +174,7 @@ index e9fa0bee..79e50a96 100644
174174+if [ -e $XDG_CONFIG_HOME/Trolltech.conf ]; then
175175+ @NIXPKGS_SED@ -e '/nix\\store\|nix\/store/ d' -i $XDG_CONFIG_HOME/Trolltech.conf
176176 fi
177−
177+
178178-mkdir -p $configDir
179179+@NIXPKGS_KBUILDSYCOCA5@
180180+
@@ -227,7 +227,7 @@ index e9fa0bee..79e50a96 100644
227227+cursorSize=0
228228+EOF
229229+fi
230−
230+
231231 #This is basically setting defaults so we can use them with kstartupconfig5
232232-cat >$configDir/startupconfigkeys <<EOF
233233+cat >"$XDG_CONFIG_HOME/startupconfigkeys" <<EOF
@@ -240,7 +240,7 @@ index e9fa0bee..79e50a96 100644
240240 kcmfonts General forceFontDPI 0
241241+kcmfonts General dontChangeAASettings true
242242 EOF
243−
243+
244244 # preload the user's locale on first start
245245-plasmalocalerc=$configDir/plasma-localerc
246246-test -f $plasmalocalerc || {
@@ -253,7 +253,7 @@ index e9fa0bee..79e50a96 100644
253253 EOF
254254-}
255255+fi
256−
256+
257257 # export LC_* variables set by kcmshell5 formats into environment
258258 # so it can be picked up by QLocale and friends.
259259-exportformatssettings=$configDir/plasma-locale-settings.sh
@@ -264,7 +264,7 @@ index e9fa0bee..79e50a96 100644
264264+if [ -r "$exportformatssettings" ]; then
265265+ . "$exportformatssettings"
266266+fi
267−
267+
268268 # Write a default kdeglobals file to set up the font
269269-kdeglobalsfile=$configDir/kdeglobals
270270-test -f $kdeglobalsfile || {
@@ -287,7 +287,7 @@ index e9fa0bee..79e50a96 100644
287287 EOF
288288-}
289289+fi
290−
290+
291291-kstartupconfig5
292292-returncode=$?
293293-if test $returncode -ne 0; then
@@ -300,13 +300,13 @@ index e9fa0bee..79e50a96 100644
300300+if [ -r "$XDG_CONFIG_HOME/startupconfig" ]; then
301301+ . "$XDG_CONFIG_HOME/startupconfig"
302302+fi
303−
303+
304304 if [ "$kdeglobals_kscreen_screenscalefactors" ]; then
305305 export QT_SCREEN_SCALE_FACTORS="$kdeglobals_kscreen_screenscalefactors"
306306@@ -94,26 +176,33 @@ fi
307307 #otherwise apps that manually opt in for high DPI get auto scaled by the developer AND manually scaled by us
308308 export QT_AUTO_SCREEN_SCALE_FACTOR=0
309−
309+
310310+#Set the QtQuickControls style to our own: for QtQuickControls1
311311+#it will fall back to Desktop, while it will use our own org.kde.desktop
312312+#for QtQuickControlsStyle and Kirigami
@@ -342,7 +342,7 @@ index e9fa0bee..79e50a96 100644
342342+ export XCURSOR_SIZE="$kcminputrc_mouse_cursorsize"
343343 fi
344344 fi
345−
345+
346346-if test "$kcmfonts_general_forcefontdpi" -ne 0; then
347347- xrdb -quiet -merge -nocpp <<EOF
348348+if [ "${kcmfonts_general_forcefontdpi:-0}" -ne 0 ]; then
@@ -352,7 +352,7 @@ index e9fa0bee..79e50a96 100644
352352 fi
353353@@ -122,11 +211,11 @@ dl=$DESKTOP_LOCKED
354354 unset DESKTOP_LOCKED # Don't want it in the environment
355−
355+
356356 ksplash_pid=
357357-if test -z "$dl"; then
358358+if [ -z "$dl" ]; then
@@ -367,7 +367,7 @@ index e9fa0bee..79e50a96 100644
367367@@ -135,71 +224,6 @@ if test -z "$dl"; then
368368 esac
369369 fi
370−
370+
371371-# Source scripts found in <config locations>/plasma-workspace/env/*.sh
372372-# (where <config locations> correspond to the system and user's configuration
373373-# directories, as identified by Qt's qtpaths, e.g. $HOME/.config
@@ -451,9 +451,9 @@ index e9fa0bee..79e50a96 100644
451451- export GS_LIB
452452-fi
453453+@NIXPKGS_XSETROOT@ -cursor_name left_ptr
454−
454+
455455 echo 'startkde: Starting up...' 1>&2
456−
456+
457457-# Make sure that the KDE prefix is first in XDG_DATA_DIRS and that it's set at all.
458458-# The spec allows XDG_DATA_DIRS to be not set, but X session startup scripts tend
459459-# to set it to a list of paths *not* including the KDE prefix if it's not /usr or
@@ -472,19 +472,19 @@ index e9fa0bee..79e50a96 100644
472472 export KDE_FULL_SESSION
473473-xprop -root -f KDE_FULL_SESSION 8t -set KDE_FULL_SESSION true
474474+@NIXPKGS_XPROP@ -root -f KDE_FULL_SESSION 8t -set KDE_FULL_SESSION true
475−
475+
476476 KDE_SESSION_VERSION=5
477477 export KDE_SESSION_VERSION
478478-xprop -root -f KDE_SESSION_VERSION 32c -set KDE_SESSION_VERSION 5
479479+@NIXPKGS_XPROP@ -root -f KDE_SESSION_VERSION 32c -set KDE_SESSION_VERSION 5
480−
480+
481481-KDE_SESSION_UID=`id -ru`
482482+KDE_SESSION_UID=$(@NIXPKGS_ID@ -ru)
483483 export KDE_SESSION_UID
484−
484+
485485 XDG_CURRENT_DESKTOP=KDE
486486 export XDG_CURRENT_DESKTOP
487−
487+
488488+# Enforce xcb QPA. Helps switching between Wayland and X sessions.
489489+export QT_QPA_PLATFORM=xcb
490490+
@@ -527,7 +527,7 @@ index e9fa0bee..79e50a96 100644
527527- xmessage -geometry 500x100 "Could not sync environment to dbus."
528528 exit 1
529529 fi
530−
530+
531531 # We set LD_BIND_NOW to increase the efficiency of kdeinit.
532532 # kdeinit unsets this variable before loading applications.
533533-LD_BIND_NOW=true @CMAKE_INSTALL_FULL_LIBEXECDIR_KF5@/start_kdeinit_wrapper --kded +kcminit_startup
@@ -539,10 +539,10 @@ index e9fa0bee..79e50a96 100644
539539- xmessage -geometry 500x100 "Could not start kdeinit5. Check your installation."
540540 exit 1
541541 fi
542−
542+
543543-qdbus org.kde.KSplash /KSplash org.kde.KSplash.setStage kinit &
544544+@NIXPKGS_QDBUS@ org.kde.KSplash /KSplash org.kde.KSplash.setStage kinit &
545−
545+
546546 # finally, give the session control to the session manager
547547 # see kdebase/ksmserver for the description of the rest of the startup sequence
548548@@ -303,34 +330,37 @@ qdbus org.kde.KSplash /KSplash org.kde.KSplash.setStage kinit &
@@ -568,12 +568,12 @@ index e9fa0bee..79e50a96 100644
568568 test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null
569569- xmessage -geometry 500x100 "Could not start ksmserver. Check your installation."
570570 fi
571−
571+
572572 #Anything after here is logout/shutdown
573−
573+
574574-wait_drkonqi=`kreadconfig5 --file startkderc --group WaitForDrKonqi --key Enabled --default true`
575575+wait_drkonqi=$(@NIXPKGS_KREADCONFIG5@ --file startkderc --group WaitForDrKonqi --key Enabled --default true)
576−
576+
577577-if test x"$wait_drkonqi"x = x"true"x ; then
578578+if [ x"$wait_drkonqi"x = x"true"x ]; then
579579 # wait for remaining drkonqi instances with timeout (in seconds)
@@ -595,18 +595,18 @@ index e9fa0bee..79e50a96 100644
595595 break
596596 fi
597597@@ -339,15 +369,17 @@ fi
598−
598+
599599 echo 'startkde: Shutting down...' 1>&2
600600 # just in case
601601-test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null
602602+if [ -n "$ksplash_pid" ]; then
603603+ kill "$ksplash_pid" 2>/dev/null
604604+fi
605−
605+
606606 # Clean up
607607-kdeinit5_shutdown
608608+@NIXPKGS_KDEINIT5_SHUTDOWN@
609−
609+
610610 unset KDE_FULL_SESSION
611611-xprop -root -remove KDE_FULL_SESSION
612612+@NIXPKGS_XPROP@ -root -remove KDE_FULL_SESSION
@@ -614,24 +614,24 @@ index e9fa0bee..79e50a96 100644
614614-xprop -root -remove KDE_SESSION_VERSION
615615+@NIXPKGS_XPROP@ -root -remove KDE_SESSION_VERSION
616616 unset KDE_SESSION_UID
617−
617+
618618 echo 'startkde: Done.' 1>&2
619619diff --git a/startkde/startplasma.cmake b/startkde/startplasma.cmake
620620index fd232bdf..e1c8fff6 100644
621621--- a/startkde/startplasma.cmake
622622+++ b/startkde/startplasma.cmake
623−@@ -1,6 +1,6 @@
623+@@ -1,4 +1,4 @@
624624 #!/bin/sh
625625 #
626626-# DEFAULT Plasma STARTUP SCRIPT ( @PROJECT_VERSION@ )
627627+# NIXPKGS Plasma STARTUP SCRIPT ( @PROJECT_VERSION@ )
628628 #
629−
629+
630630 # Boot sequence:
631631@@ -17,17 +17,13 @@
632632 #
633633 # * Then ksmserver is started which takes control of the rest of the startup sequence
634−
634+
635635-# We need to create config folder so we can write startupconfigkeys
636636-if [ ${XDG_CONFIG_HOME} ]; then
637637- configDir=$XDG_CONFIG_HOME;
@@ -641,7 +641,7 @@ index fd232bdf..e1c8fff6 100644
641641+if [ -r "$XDG_CONFIG_HOME/startupconfig" ]; then
642642+ . "$XDG_CONFIG_HOME/startupconfig"
643643 fi
644−
644+
645645-[ -r $configDir/startupconfig ] && . $configDir/startupconfig
646646-
647647-if test "$kcmfonts_general_forcefontdpi" -ne 0; then
@@ -653,7 +653,7 @@ index fd232bdf..e1c8fff6 100644
653653 fi
654654@@ -36,11 +32,11 @@ dl=$DESKTOP_LOCKED
655655 unset DESKTOP_LOCKED # Don't want it in the environment
656−
656+
657657 ksplash_pid=
658658-if test -z "$dl"; then
659659+if [ -z "$dl" ]; then
@@ -668,7 +668,7 @@ index fd232bdf..e1c8fff6 100644
668668@@ -52,48 +48,6 @@ fi
669669 #In wayland we want Plasma to use Qt's scaling
670670 export PLASMA_USE_QT_SCALING=1
671−
671+
672672-# Activate the kde font directories.
673673-#
674674-# There are 4 directories that may be used for supplying fonts for KDE.
@@ -729,15 +729,15 @@ index fd232bdf..e1c8fff6 100644
729729- export GS_LIB
730730-fi
731731+@NIXPKGS_XSETROOT@ -cursor_name left_ptr
732−
732+
733733 echo 'startplasma: Starting up...' 1>&2
734−
734+
735735 # export our session variables to the Xwayland server
736736-xprop -root -f KDE_FULL_SESSION 8t -set KDE_FULL_SESSION true
737737-xprop -root -f KDE_SESSION_VERSION 32c -set KDE_SESSION_VERSION 5
738738+@NIXPKGS_XPROP@ -root -f KDE_FULL_SESSION 8t -set KDE_FULL_SESSION true
739739+@NIXPKGS_XPROP@ -root -f KDE_SESSION_VERSION 32c -set KDE_SESSION_VERSION 5
740−
740+
741741 # We set LD_BIND_NOW to increase the efficiency of kdeinit.
742742 # kdeinit unsets this variable before loading applications.
743743-LD_BIND_NOW=true @CMAKE_INSTALL_FULL_LIBEXECDIR_KF5@/start_kdeinit_wrapper --kded +kcminit_startup
@@ -749,10 +749,10 @@ index fd232bdf..e1c8fff6 100644
749749- xmessage -geometry 500x100 "Could not start kdeinit5. Check your installation."
750750 exit 1
751751 fi
752−
752+
753753-qdbus org.kde.KSplash /KSplash org.kde.KSplash.setStage kinit
754754+@NIXPKGS_QDBUS@ org.kde.KSplash /KSplash org.kde.KSplash.setStage kinit
755−
755+
756756 # finally, give the session control to the session manager
757757 # see kdebase/ksmserver for the description of the rest of the startup sequence
758758@@ -145,27 +89,26 @@ qdbus org.kde.KSplash /KSplash org.kde.KSplash.setStage kinit
@@ -767,10 +767,10 @@ index fd232bdf..e1c8fff6 100644
767767 test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null
768768- xmessage -geometry 500x100 "Could not start ksmserver. Check your installation."
769769 fi
770−
770+
771771-wait_drkonqi=`kreadconfig5 --file startkderc --group WaitForDrKonqi --key Enabled --default true`
772772+wait_drkonqi=$(@NIXPKGS_KREADCONFIG5@ --file startkderc --group WaitForDrKonqi --key Enabled --default true)
773−
773+
774774-if test x"$wait_drkonqi"x = x"true"x ; then
775775+if [ x"$wait_drkonqi"x = x"true"x ]; then
776776 # wait for remaining drkonqi instances with timeout (in seconds)
@@ -792,18 +792,18 @@ index fd232bdf..e1c8fff6 100644
792792 break
793793 fi
794794@@ -174,15 +117,17 @@ fi
795−
795+
796796 echo 'startplasma: Shutting down...' 1>&2
797797 # just in case
798798-test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null
799799+if [ -n "$ksplash_pid" ]; then
800800+ kill "$ksplash_pid" 2>/dev/null
801801+fi
802−
802+
803803 # Clean up
804804-kdeinit5_shutdown
805805+@NIXPKGS_KDEINIT5_SHUTDOWN@
806−
806+
807807 unset KDE_FULL_SESSION
808808-xprop -root -remove KDE_FULL_SESSION
809809+@NIXPKGS_XPROP@ -root -remove KDE_FULL_SESSION
@@ -811,7 +811,7 @@ index fd232bdf..e1c8fff6 100644
811811-xprop -root -remove KDE_SESSION_VERSION
812812+@NIXPKGS_XPROP@ -root -remove KDE_SESSION_VERSION
813813 unset KDE_SESSION_UID
814−
814+
815815 echo 'startplasma: Done.' 1>&2
816816diff --git a/startkde/startplasmacompositor.cmake b/startkde/startplasmacompositor.cmake
817817index 417a87d4..3f62745a 100644
@@ -823,7 +823,7 @@ index 417a87d4..3f62745a 100644
823823-# DEFAULT Plasma STARTUP SCRIPT ( @PROJECT_VERSION@ )
824824+# NIXPKGS Plasma STARTUP SCRIPT ( @PROJECT_VERSION@ )
825825 #
826−
826+
827827-# in case we have been started with full pathname spec without being in PATH
828828-bindir=`echo "$0" | sed -n 's,^\(/.*\)/[^/][^/]*$,\1,p'`
829829-if [ -n "$bindir" ]; then
@@ -861,7 +861,7 @@ index 417a87d4..3f62745a 100644
861861+if [ -e $XDG_CONFIG_HOME/Trolltech.conf ]; then
862862+ @NIXPKGS_SED@ -e '/nix\\store\|nix\/store/ d' -i $XDG_CONFIG_HOME/Trolltech.conf
863863 fi
864−
864+
865865-# We need to create config folder so we can write startupconfigkeys
866866-if [ ${XDG_CONFIG_HOME} ]; then
867867- configDir=$XDG_CONFIG_HOME;
@@ -891,7 +891,7 @@ index 417a87d4..3f62745a 100644
891891+gtk-button-images=1
892892+EOF
893893 fi
894−
894+
895895-mkdir -p $configDir
896896+# Set the default GTK 3 theme
897897+gtk3_settings="$XDG_CONFIG_HOME/gtk-3.0/settings.ini"
@@ -919,7 +919,7 @@ index 417a87d4..3f62745a 100644
919919+cursorSize=0
920920+EOF
921921+fi
922−
922+
923923 #This is basically setting defaults so we can use them with kstartupconfig5
924924-cat >$configDir/startupconfigkeys <<EOF
925925+cat >"$XDG_CONFIG_HOME/startupconfigkeys" <<EOF
@@ -933,7 +933,7 @@ index 417a87d4..3f62745a 100644
933933+kcmfonts General forceFontDPI 0
934934+kcmfonts General dontChangeAASettings true
935935 EOF
936−
936+
937937 # preload the user's locale on first start
938938-plasmalocalerc=$configDir/plasma-localerc
939939-test -f $plasmalocalerc || {
@@ -946,7 +946,7 @@ index 417a87d4..3f62745a 100644
946946 EOF
947947-}
948948+fi
949−
949+
950950 # export LC_* variables set by kcmshell5 formats into environment
951951 # so it can be picked up by QLocale and friends.
952952-exportformatssettings=$configDir/plasma-locale-settings.sh
@@ -957,7 +957,7 @@ index 417a87d4..3f62745a 100644
957957+if [ -r "$exportformatssettings" ]; then
958958+ . "$exportformatssettings"
959959+fi
960−
960+
961961 # Write a default kdeglobals file to set up the font
962962-kdeglobalsfile=$configDir/kdeglobals
963963-test -f $kdeglobalsfile || {
@@ -1011,7 +1011,7 @@ index 417a87d4..3f62745a 100644
10111011- test -h $oxygenDir || ln -s $prefixDir $oxygenDir && fc-cache $oxygenDir
10121012- }
10131013 fi
1014−
1014+
10151015-kstartupconfig5
10161016-returncode=$?
10171017-if test $returncode -ne 0; then
@@ -1022,11 +1022,11 @@ index 417a87d4..3f62745a 100644
10221022+if [ -r "$XDG_CONFIG_HOME/startupconfig" ]; then
10231023+ . "$XDG_CONFIG_HOME/startupconfig"
10241024+fi
1025−
1025+
10261026 #Manually disable auto scaling because we are scaling above
10271027 #otherwise apps that manually opt in for high DPI get auto scaled by the developer AND scaled by the wl_output
10281028 export QT_AUTO_SCREEN_SCALE_FACTOR=0
1029−
1029+
10301030+XCURSOR_PATH=~/.icons
10311031+IFS=":" read -r -a xdgDirs <<< "$XDG_DATA_DIRS"
10321032+for xdgDir in "${xdgDirs[@]}"; do
@@ -1060,14 +1060,14 @@ index 417a87d4..3f62745a 100644
10601060+ export XCURSOR_SIZE="$kcminputrc_mouse_cursorsize"
10611061 fi
10621062 fi
1063−
1063+
10641064-if test "$kcmfonts_general_forcefontdpiwayland" -ne 0; then
10651065+if [ "${kcmfonts_general_forcefontdpiwayland:-0}" -ne 0 ]; then
10661066 export QT_WAYLAND_FORCE_DPI=$kcmfonts_general_forcefontdpiwayland
10671067 else
10681068 export QT_WAYLAND_FORCE_DPI=96
10691069 fi
1070−
1070+
10711071-# Source scripts found in <config locations>/plasma-workspace/env/*.sh
10721072-# (where <config locations> correspond to the system and user's configuration
10731073-# directories, as identified by Qt's qtpaths, e.g. $HOME/.config
@@ -1093,7 +1093,7 @@ index 417a87d4..3f62745a 100644
10931093-done
10941094-
10951095 echo 'startplasmacompositor: Starting up...' 1>&2
1096−
1096+
10971097-# Make sure that the KDE prefix is first in XDG_DATA_DIRS and that it's set at all.
10981098-# The spec allows XDG_DATA_DIRS to be not set, but X session startup scripts tend
10991099-# to set it to a list of paths *not* including the KDE prefix if it's not /usr or
@@ -1114,16 +1114,16 @@ index 417a87d4..3f62745a 100644
11141114@@ -202,7 +200,7 @@ export KDE_FULL_SESSION
11151115 KDE_SESSION_VERSION=5
11161116 export KDE_SESSION_VERSION
1117−
1117+
11181118-KDE_SESSION_UID=`id -ru`
11191119+KDE_SESSION_UID=$(@NIXPKGS_ID@ -ru)
11201120 export KDE_SESSION_UID
1121−
1121+
11221122 XDG_CURRENT_DESKTOP=KDE
11231123@@ -212,26 +210,47 @@ export XDG_CURRENT_DESKTOP
11241124 QT_QPA_PLATFORM=wayland
11251125 export QT_QPA_PLATFORM
1126−
1126+
11271127+# Source scripts found in <config locations>/plasma-workspace/env/*.sh
11281128+# (where <config locations> correspond to the system and user's configuration
11291129+# directories, as identified by Qt's qtpaths, e.g. $HOME/.config
@@ -1165,12 +1165,12 @@ index 417a87d4..3f62745a 100644
11651165+ echo 'startplasmacompositor: Could not sync environment to dbus.' 1>&2
11661166+ exit 1
11671167 fi
1168−
1168+
11691169-@KWIN_WAYLAND_BIN_PATH@ --xwayland --libinput --exit-with-session=@CMAKE_INSTALL_FULL_LIBEXECDIR@/startplasma
11701170+@KWIN_WAYLAND_BIN_PATH@ --xwayland --libinput --exit-with-session=@NIXPKGS_STARTPLASMA@
1171−
1171+
11721172 echo 'startplasmacompositor: Shutting down...' 1>&2
1173−
1173+
11741174 unset KDE_FULL_SESSION
11751175-xprop -root -remove KDE_FULL_SESSION
11761176+@NIXPKGS_XPROP@ -root -remove KDE_FULL_SESSION
@@ -1178,7 +1178,7 @@ index 417a87d4..3f62745a 100644
11781178-xprop -root -remove KDE_SESSION_VERSION
11791179+@NIXPKGS_XPROP@ -root -remove KDE_SESSION_VERSION
11801180 unset KDE_SESSION_UID
1181−
1181+
11821182 echo 'startplasmacompositor: Done.' 1>&2
11831183diff --git a/startkde/waitforname/org.kde.plasma.Notifications.service.in b/startkde/waitforname/org.kde.plasma.Notifications.service.in
11841184index 0a51b84b..f48b5d8a 100644