parent
582e4354a7
commit
70af29672d
@ -211,6 +211,17 @@ def set_autologin(username,
|
|||||||
kdm_conf_path = os.path.join(
|
kdm_conf_path = os.path.join(
|
||||||
root_mount_point, "usr/share/config/kdm/kdmrc"
|
root_mount_point, "usr/share/config/kdm/kdmrc"
|
||||||
)
|
)
|
||||||
|
# Check which path is in use: SUSE does something else.
|
||||||
|
# Also double-check the default setting. Pick the first
|
||||||
|
# one that exists in the target.
|
||||||
|
for candidate_kdmrc in (
|
||||||
|
"usr/share/config/kdm/kdmrc",
|
||||||
|
"usr/share/kde4/config/kdm/kdmrc",
|
||||||
|
):
|
||||||
|
p = os.path.join(root_mount_point, candidate_kdmrc)
|
||||||
|
if os.path.exists(p):
|
||||||
|
kdm_conf_path = p
|
||||||
|
break
|
||||||
text = []
|
text = []
|
||||||
|
|
||||||
if os.path.exists(kdm_conf_path):
|
if os.path.exists(kdm_conf_path):
|
||||||
|
Loading…
Reference in New Issue
Block a user