no wallpaper when disconnected from internet (patch attached)

Bug #691602 reported by Kevin Keraudren on 2010-12-17
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Realtime Sunlight Wallpaper
Carles Sentis

Bug Description


I did some modifications to "callbacks.c" so that :

"" now looks like :

##### BEGIN #####

while [ $COUNTER -lt 10 ]; do
 curl > world.jpg
 temp=$(stat -c%s world.jpg)
  if [[ $temp > 1000 ]]
  then rm /home/kevin/.gnome2/RealtimeSunlightWallpaper/gtk-sunlight/*.jpg
   mv world.jpg /home/kevin/.gnome2/RealtimeSunlightWallpaper/gtk-sunlight/sunlight_wallpaper1292601070.jpg
   exit 0
 sleep 5

exit 1
#####END #####

and I checked the definition of the C "system" function on Wikipedia :
"system [...] will wait until the child process terminates and return its exit value"

hence : I put 10 tries instead of 60 tries : gtk-sunlight is freezing while waiting for ./ to answer and if there is nbo connection, it is no use waiting 60*5s=5min, also I introduced exit values.

Then later in :
   if (system(fname) == 0 ) {

instead of :

I attached to this bug report a patch (bzr diff > callbacks.diff).
I hope this will help those without a permanent internet connection, or those who simply travel with their laptop.

Kind regards,


Carles Sentis (heepie202) wrote :

Thank you so much for your input.

I'm pretty busy at the moment but revise and implement your changes as soon as.


Changed in realtimesunlightwallpaper:
assignee: nobody → Carles Sentis (heepie202)
importance: Undecided → Low
Carles Sentis (heepie202) wrote :

Your patch has been implemented.

Thank you

Changed in realtimesunlightwallpaper:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers