~flimm/epidermis/icon-theme-bugfix

« back to all changes in this revision

Viewing changes to epidermis/pigments/skin.py

  • Committer: David D Lowe
  • Date: 2011-04-25 18:33:53 UTC
  • Revision ID: daviddlowe.flimm@gmail.com-20110425183353-2b1i4143895uk63o
Integrated the update theme_preview.py with the rest of Epidermis.

Show diffs side-by-side

added added

removed removed

Lines of Context:
244
244
            themeScript = os.path.join(dir,"theme_preview.py")
245
245
            subprocess.call(["mkdir",  "-p",  "/tmp/epidermis"])
246
246
            subprocess.call(["rm","-f",  "/tmp/epidermis/skin-preview.png"])
247
 
            env = os.environ
248
 
            if self.linkedPigments.has_key("gtk"):
249
 
                env["GTK2_RC_FILES"] = os.path.join(self.linkedPigments["gtk"].attPath,  "gtk-2.0",  "gtkrc")
250
 
            command = ["python",themeScript,"multiple","/tmp/epidermis/skin-preview.png"]
251
 
            for bit in ("metacity","icons","wallpaper"):
 
247
            command = ["python",themeScript,"all","/tmp/epidermis/skin-preview.png"]
 
248
            for bit in ("metacity","icons","gtk"):
252
249
                if self.linkedPigments.has_key(bit):
253
 
                    command.extend([bit,self.linkedPigments[bit].attPath])
254
 
            subprocess.call(command, env=env)
 
250
                    command.extend(["--" + bit, self.linkedPigments[bit].attPath])
 
251
            subprocess.call(command)
255
252
            try:
256
253
                pb = gtk.gdk.pixbuf_new_from_file("/tmp/epidermis/skin-preview.png")
257
254
            except Exception, ee: