diff --git a/modules/system/activation/switch-to-configuration.sh b/modules/system/activation/switch-to-configuration.sh index 3d084f92ff8a..bcf31f9bd52a 100644 --- a/modules/system/activation/switch-to-configuration.sh +++ b/modules/system/activation/switch-to-configuration.sh @@ -85,7 +85,9 @@ EOF # Hack: skip the sys-* and ctrl-alt-delete events. # 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 + # And don't restart dbus, since that causes ConsoleKit to + # forget about current sessions. + if echo "$event" | grep -q "^sys-\|^ctrl-\|^xserver$\|^dbus$"; then continue; fi if ! test -e "$oldEvents/$event"; then echo "starting $event..."