|
|
@ -83,7 +83,7 @@ class DesktopEnvironment:
|
|
|
|
return candidate
|
|
|
|
return candidate
|
|
|
|
return None
|
|
|
|
return None
|
|
|
|
|
|
|
|
|
|
|
|
def find_desktop_environment(self, root_mount_point):
|
|
|
|
def is_installed(self, root_mount_point):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
Check if this environment is installed in the
|
|
|
|
Check if this environment is installed in the
|
|
|
|
target system at @p root_mount_point.
|
|
|
|
target system at @p root_mount_point.
|
|
|
@ -144,7 +144,7 @@ def find_desktop_environment(root_mount_point):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
libcalamares.utils.debug("Using rootMountPoint {!r}".format(root_mount_point))
|
|
|
|
libcalamares.utils.debug("Using rootMountPoint {!r}".format(root_mount_point))
|
|
|
|
for desktop_environment in desktop_environments:
|
|
|
|
for desktop_environment in desktop_environments:
|
|
|
|
if desktop_environment.find_desktop_environment(root_mount_point):
|
|
|
|
if desktop_environment.is_installed(root_mount_point):
|
|
|
|
libcalamares.utils.debug(".. selected DE {!s}".format(desktop_environment.desktop_file))
|
|
|
|
libcalamares.utils.debug(".. selected DE {!s}".format(desktop_environment.desktop_file))
|
|
|
|
return desktop_environment
|
|
|
|
return desktop_environment
|
|
|
|
return None
|
|
|
|
return None
|
|
|
|