need not to write configs fot latest uxlaunch
authorGui Chen <gui.chen@intel.com>
Mon, 17 Oct 2011 08:44:14 +0000 (16:44 +0800)
committerGui Chen <gui.chen@intel.com>
Mon, 17 Oct 2011 08:44:14 +0000 (16:44 +0800)
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/kickstart/__init__.py
mic/kickstart/custom_commands/desktop.py

index 904abf6..3bb6827 100644 (file)
@@ -326,11 +326,6 @@ class DesktopConfig(KickstartConfig):
             f = open(self.path("/etc/sysconfig/desktop"), "a+")
             f.write("AUTOLOGIN_USER=" + ksdesktop.autologinuser + "\n")
             f.close()
-            if ksdesktop.session:
-                if os.path.exists(self.path("/etc/sysconfig/uxlaunch")):
-                    f = open(self.path("/etc/sysconfig/uxlaunch"), "a+")
-                    f.write("user="+ksdesktop.autologinuser+"\n")
-                    f.close()
             if os.path.exists(self.path("/etc/gdm/custom.conf")):
                 f = open(self.path("/etc/gdm/custom.conf"), "w")
                 f.write("[daemon]\n")
index aa733c4..eceb718 100644 (file)
@@ -22,7 +22,7 @@ from pykickstart.errors import *
 from pykickstart.options import *
 
 class Moblin_Desktop(KickstartCommand):
-    def __init__(self, writePriority=0, defaultdesktop=None, defaultdm=None, autologinuser="meego", session="/usr/bin/mutter --sm-disable"):
+    def __init__(self, writePriority=0, defaultdesktop=None, defaultdm=None, autologinuser="meego", session=None):
         KickstartCommand.__init__(self, writePriority)
 
         self.__new_version = False