Advertisement
Guest User

toxrn

a guest
Nov 26th, 2009
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.74 KB | None | 0 0
  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
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement