[displaymanager] add filter for .desktop file
This commit is contained in:
parent
cd3e631027
commit
c75dbd83e0
@ -458,12 +458,17 @@ def run():
|
|||||||
)
|
)
|
||||||
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_path, greeter , ".desktop"
|
||||||
|
)
|
||||||
|
if (os.path.exists(greeter_desktop)):
|
||||||
libcalamares.utils.debug("configure {!s}".format(greeter))
|
libcalamares.utils.debug("configure {!s}".format(greeter))
|
||||||
"sed -i -e \"s/^.*greeter-session=.*/greeter-session={!s}/\" "
|
"sed -i -e \"s/^.*greeter-session=.*/greeter-session={!s}/\" "
|
||||||
"{!s}".format(
|
"{!s}".format(
|
||||||
greeter,
|
greeter,
|
||||||
lightdm_conf_path
|
lightdm_conf_path
|
||||||
)
|
)
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
return ("No lightdm greeter installed.")
|
return ("No lightdm greeter installed.")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user