[4019] | 1 | diff -up gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py.path gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py |
---|
| 2 | --- gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py.path 2011-06-02 14:31:27.314992975 +0900 |
---|
| 3 | +++ gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py 2011-06-02 14:33:48.431992975 +0900 |
---|
| 4 | @@ -41,10 +41,10 @@ class GDM2Theme(object): |
---|
| 5 | |
---|
| 6 | DBUG = True |
---|
| 7 | |
---|
| 8 | - GDMCONF_FILE = u"/etc/gdm/custom.conf" |
---|
| 9 | + GDMCONF_FILE = u"/etc/X11/gdm/custom.conf" |
---|
| 10 | THEMES_DIRECTORY = u"/usr/share/themes/" |
---|
| 11 | ICONS_DIRECTORY = u"/usr/share/icons/" |
---|
| 12 | - XSPLASH_IMAGE_LOCATION = u"/usr/share/images/xsplash/bg.jpg" |
---|
| 13 | + XSPLASH_IMAGE_LOCATION = u"/usr/share/pixmaps/backgrounds/Vine/default.jpg" |
---|
| 14 | |
---|
| 15 | def __init__(self): |
---|
| 16 | # Lets switch to the GDM user, since that is who all our changes need to take place as |
---|
| 17 | @@ -192,17 +192,6 @@ class GDM2Theme(object): |
---|
| 18 | |
---|
| 19 | retcall = subprocess.Popen(["sudo", "-u", "gdm", "gconftool-2", "-s", "/desktop/gnome/background/picture_filename", "--type", "string", self.XSPLASH_IMAGE_LOCATION], stdout=subprocess.PIPE).wait() |
---|
| 20 | |
---|
| 21 | - ###TODO: this is a temp-hack - we need to actually create the image sizes even though the system will |
---|
| 22 | - ### automatically do it, because it introduces some image jumping during it's efforts - looks ugly |
---|
| 23 | - retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_800x600.jpg"], stdout=subprocess.PIPE).wait() |
---|
| 24 | - retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_1024x768.jpg"], stdout=subprocess.PIPE).wait() |
---|
| 25 | - retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_1280x800.jpg"], stdout=subprocess.PIPE).wait() |
---|
| 26 | - retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_1280x1024.jpg"], stdout=subprocess.PIPE).wait() |
---|
| 27 | - retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_1440x900.jpg"], stdout=subprocess.PIPE).wait() |
---|
| 28 | - retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_1680x1050.jpg"], stdout=subprocess.PIPE).wait() |
---|
| 29 | - retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_1920x1200.jpg"], stdout=subprocess.PIPE).wait() |
---|
| 30 | - retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_2560x1600.jpg"], stdout=subprocess.PIPE).wait() |
---|
| 31 | - |
---|
| 32 | |
---|
| 33 | def GetWallpaper(self, ): |
---|
| 34 | retcall = subprocess.Popen(["sudo", "-u", "gdm", "gconftool-2", "-g", "/desktop/gnome/background/picture_filename"], stdout=subprocess.PIPE) |
---|