Posted by toxrn on Fri 27 Nov 03:48
report abuse | download | new post
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- import os
- case = 1
- os.system("gconftool --type=bool --set /apps/nautilus/preferences/background_set true")#habilitamos el background de nautilus
- while 1:
- if case == 1:
- os.system("gconftool --type=string --set /apps/nautilus/preferences/background_filename 'file://ruta_a_la_imagen_1'")#usamos gconftool
- os.system("sleep 4")#esperamos 4 segundos
- case = 2
- if case == 2:
- os.system("gconftool --type=string --set /apps/nautilus/preferences/background_filename 'file://ruta_a_la_imagen_2'")
- os.system("sleep 4")
- case = 3
- if case == 3:
- os.system("gconftool --type=string --set /apps/nautilus/preferences/background_filename 'file://ruta_a_la_imagen_3'")
- os.system("sleep 5")
- case = 1
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.