diff --git a/src/modules/displaymanager/main.py b/src/modules/displaymanager/main.py index 35e1a1b9a..4d38ec20e 100644 --- a/src/modules/displaymanager/main.py +++ b/src/modules/displaymanager/main.py @@ -459,8 +459,10 @@ def run(): if (os.path.exists(greeter_path)): greeter = os.listdir(greeter_path)[0].split('.')[0] greeter_desktop = os.path.join( - greeter_path, greeter, ".desktop" - ) + greeter_path, + greeter, + ".desktop" + ) if (os.path.exists(greeter_desktop)): libcalamares.utils.debug("configure {!s}".format(greeter)) "sed -i -e \"s/^.*greeter-session=.*/greeter-session={!s}/\" " @@ -468,7 +470,6 @@ def run(): greeter, lightdm_conf_path ) - ) else: return ("No lightdm greeter installed.") else: