Bonjour,
Voila, j'ai xplanet en fond d'ecran, c'est carrement mystique,
mais voila, j'ai suivi les tutos là
http://pagesperso-orange.fr/dawidlinux/libres_fichiers/tutoriel-xplanet.html
et repris le script pour mettre a jour le bureau là
http://forums.fedora-fr.org/viewtopic.php?id=22971&words=xplanet
Alors effectivement, il y a un truck vraiment mystique, c'est que tout fonctionne parfaitement, l'image ce met bien a jour toutes les dix minutes dans le repertoire et meme la mise a jour des nuages, enfin tout impec, sauf que l'arriere plan ce met bien a jour mais que sur deux images. il affiche une premiere quand je me logue qui est bien l'image dernierement mise a jour, il passe a la deuxieme, puis reviens sur la premiere, comme si il garder l'image en cache.
j'ai beau chercher je ne vois pas.
si c'est le cache, comment le vider a chaque mises a jour ???:hammer:
Y a t'il une modif a faire dans cette ligne???
#update Gnome backgound
gconftool-2 -t str -s /desktop/gnome/background/picture_filename "$PREFIX$OUTPUT"
le script qui devrait mettre a jour l'image de fond d'ecran
#!/bin/bash
#xplanet-gnome.sh shell script v0.2
#shows Earth on your Gnome desktop with current lighting conditions,i.e. day and night
DELAY=10m
PREFIX=/home/pat/.xplanet/
OUTPUT=xplanet.jpg
APPEND=2
GEOMETRY=1280x1024
LONGITUDE=10
LATITUDE=30
#default is no projection,i.e. render a globe
#rectangular is the flat world map. also try ancient,rectangular,azimuthal,mercator,..
#PROJECTION=rectangular
#rename background image so Gnome realises image has changed - thx to dmbasso
if [ -e "$PREFIX$OUTPUT" ]; then
rm "$PREFIX$OUTPUT"
OUTPUT="$APPEND$OUTPUT"
else
rm "$PREFIX$APPEND$OUTPUT"
fi
if [ -z $PROJECTION ]; then
xplanet -num_times 1 -output "$PREFIX$OUTPUT" -geometry $GEOMETRY -longitude $LONGITUDE -latitude $LATITUDE
else
xplanet -num_times 1 -output "$PREFIX$OUTPUT" -geometry $GEOMETRY -longitude $LONGITUDE -latitude $LATITUDE -projection $PROJECTION
fi
#update Gnome backgound
gconftool-2 -t str -s /desktop/gnome/background/picture_filename "$PREFIX$OUTPUT"
sleep $DELAY
exec $0
Merci d'avance et bonne journée a tous.