From 6a70029198c3fce91f6fdfec70b33d7e44adba5f Mon Sep 17 00:00:00 2001 From: Manjaro Linux Date: Fri, 28 Nov 2014 18:27:16 +0100 Subject: [PATCH] Fix commit d5d74fbdcdefee39a152cb2666e6869cc0f5c876 We need to pass default_desktop_environment if we won't use automatic desktop detection. --- src/modules/displaymanager/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/displaymanager/main.py b/src/modules/displaymanager/main.py index a72c3f2ae..8c97787c6 100644 --- a/src/modules/displaymanager/main.py +++ b/src/modules/displaymanager/main.py @@ -48,7 +48,7 @@ def find_desktop_environment(root_mount_point): return desktop_environment return None -def set_autologin(username, displaymanagers, root_mount_point): +def set_autologin(username, displaymanagers, default_desktop_environment, root_mount_point): """ Enables automatic login for the installed desktop managers """ if "mdm" in displaymanagers: @@ -322,6 +322,6 @@ def run(): if username != None: libcalamares.utils.debug( "Setting up autologin for user %s." % username) - return set_autologin(username, displaymanagers, root_mount_point) + return set_autologin(username, displaymanagers, default_desktop_environment, root_mount_point) return None