From 811b1422e97a486d3bbfcb8e508908c0d882efcf Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Wed, 26 Oct 2016 03:56:03 +0200 Subject: [PATCH] [displaymanager] add Deepin --- src/modules/displaymanager/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/displaymanager/main.py b/src/modules/displaymanager/main.py index 9dc007abc..29a6582cb 100644 --- a/src/modules/displaymanager/main.py +++ b/src/modules/displaymanager/main.py @@ -44,6 +44,7 @@ desktop_environments = [ DesktopEnvironment('/usr/bin/pekwm', 'pekwm'), DesktopEnvironment('/usr/bin/pantheon-session', 'pantheon'), DesktopEnvironment('/usr/bin/i3', 'i3'), + DesktopEnvironment('/usr/bin/startdde', 'deepin'), DesktopEnvironment('/usr/bin/openbox-session', 'openbox') ] @@ -350,6 +351,11 @@ def run(): if default_desktop_environment is not None: os.system("sed -i -e \"s/^.*user-session=.*/user-session={!s}/\" {!s}/etc/lightdm/lightdm.conf".format( default_desktop_environment.desktop_file, root_mount_point)) + + if default_desktop_environment.desktop_file == "deepin": + os.system("sed -i -e \"s/^.greeter-session=.*/greeter-session=lightdm-deepin-greeter/\" {}/etc/lightdm/lightdm.conf".format( + root_mount_point)) + else: libcalamares.utils.debug("lightdm selected but not installed") displaymanagers.remove("lightdm")