From 1a9f5e455ead4474afb5f59088c2a8bd06054346 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 3 Mar 2007 23:18:56 +0000 Subject: [PATCH] * Don't restart the X server if the xserver job changes, as that would kill the X clients. svn path=/nixos/trunk/; revision=8161 --- system/switch-to-configuration.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/switch-to-configuration.sh b/system/switch-to-configuration.sh index c199b083263..206ac29d812 100644 --- a/system/switch-to-configuration.sh +++ b/system/switch-to-configuration.sh @@ -72,7 +72,8 @@ if test "$action" = "switch" -o "$action" = "test"; then for event in $(cd $newEvents && ls); do # Hack: skip the sys-* and ctrl-alt-delete events. - if echo "$event" | grep -q "^sys-\|^ctrl-"; then continue; fi + # Another hack: don't restart the X server (that would kill all the clients). + if echo "$event" | grep -q "^sys-\|^ctrl-|^xserver"; then continue; fi if ! test -e "$oldEvents/$event"; then echo "starting $event..."