source: projects/specs/branches/6/g/gdm2setup/gdm2setup-0.5.3-vine.patch @ 4019

Revision 4019, 2.7 KB checked in by daisuke, 13 years ago (diff)

gdm2setup: new package

  • gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py

    diff -up gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py.path gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py
    old new class GDM2Theme(object):  
    4141       
    4242    DBUG = True 
    4343 
    44     GDMCONF_FILE = u"/etc/gdm/custom.conf" 
     44    GDMCONF_FILE = u"/etc/X11/gdm/custom.conf" 
    4545    THEMES_DIRECTORY = u"/usr/share/themes/" 
    4646    ICONS_DIRECTORY = u"/usr/share/icons/" 
    47     XSPLASH_IMAGE_LOCATION = u"/usr/share/images/xsplash/bg.jpg" 
     47    XSPLASH_IMAGE_LOCATION = u"/usr/share/pixmaps/backgrounds/Vine/default.jpg" 
    4848 
    4949    def __init__(self): 
    5050        # Lets switch to the GDM user, since that is who all our changes need to take place as 
    class GDM2Theme(object):  
    192192             
    193193        retcall = subprocess.Popen(["sudo", "-u", "gdm", "gconftool-2", "-s", "/desktop/gnome/background/picture_filename", "--type", "string", self.XSPLASH_IMAGE_LOCATION], stdout=subprocess.PIPE).wait() 
    194194 
    195         ###TODO: this is a temp-hack - we need to actually create the image sizes even though the system will 
    196         ### automatically do it, because it introduces some image jumping during it's efforts - looks ugly 
    197         retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_800x600.jpg"], stdout=subprocess.PIPE).wait() 
    198         retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_1024x768.jpg"], stdout=subprocess.PIPE).wait() 
    199         retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_1280x800.jpg"], stdout=subprocess.PIPE).wait() 
    200         retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_1280x1024.jpg"], stdout=subprocess.PIPE).wait() 
    201         retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_1440x900.jpg"], stdout=subprocess.PIPE).wait() 
    202         retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_1680x1050.jpg"], stdout=subprocess.PIPE).wait() 
    203         retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_1920x1200.jpg"], stdout=subprocess.PIPE).wait() 
    204         retcall = subprocess.Popen(["ln", "-s", "-f", "-T", self.XSPLASH_IMAGE_LOCATION, "/usr/share/images/xsplash/bg_2560x1600.jpg"], stdout=subprocess.PIPE).wait() 
    205  
    206195   
    207196    def GetWallpaper(self, ):  
    208197        retcall = subprocess.Popen(["sudo", "-u", "gdm", "gconftool-2", "-g", "/desktop/gnome/background/picture_filename"], stdout=subprocess.PIPE) 
Note: See TracBrowser for help on using the repository browser.