[displaymanager] fix issue with tuple for string

This commit is contained in:
Philip 2017-06-28 13:29:27 +02:00
parent cc5adb6586
commit 9d906e7964

View File

@ -459,20 +459,20 @@ def run():
greeter_path = os.path.join( greeter_path = os.path.join(
root_mount_point, "usr/share/xgreeters" root_mount_point, "usr/share/xgreeters"
) )
if (os.path.exists(greeter_path)): if (os.path.exists(greeter_path)):
greeter = os.listdir(greeter_path)[0].split('.')[0] greeter = os.listdir(greeter_path)[0].split('.')[0]
greeter_desktop = os.path.join( greeter_desktop = (
greeter_path, "{!s}.desktop".format(
greeter, os.path.join(greeter_path, greeter)
".desktop" )
) )
if (os.path.exists(greeter_desktop)): if (os.path.exists(greeter_desktop)):
libcalamares.utils.debug("configure {!s}".format(greeter)) libcalamares.utils.debug("configure {!s}".format(greeter))
os.system( os.system(
"sed -i -e " "sed -i -e \"s/^.*greeter-session=.*"
"\"s/^.*greeter-session=.*/greeter-session={!s}/\" " "/greeter-session={!s}/\" {!s}".format(
"{!s}".format(
greeter, greeter,
lightdm_conf_path lightdm_conf_path
) )