Guest

toxrn

By: a guest on Nov 26th, 2009  |  syntax: Python  |  size: 0.74 KB  |  hits: 102  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. import os
  4. case = 1
  5. os.system("gconftool --type=bool --set /apps/nautilus/preferences/background_set true")#habilitamos el background de nautilus
  6. while 1:
  7.         if case == 1:
  8.                 os.system("gconftool --type=string --set /apps/nautilus/preferences/background_filename 'file://ruta_a_la_imagen_1'")#usamos gconftool
  9.                 os.system("sleep 4")#esperamos 4 segundos
  10.                 case = 2
  11.         if case == 2:
  12.                 os.system("gconftool --type=string --set /apps/nautilus/preferences/background_filename 'file://ruta_a_la_imagen_2'")
  13.                 os.system("sleep 4")
  14.                 case = 3
  15.         if case == 3:
  16.                 os.system("gconftool --type=string --set /apps/nautilus/preferences/background_filename 'file://ruta_a_la_imagen_3'")
  17.                 os.system("sleep 5")
  18.                 case = 1