Please post the script you use., and the entry in cron
|
Also, check that the gconftool-2 command is indeed executed and with which arguments.
You can do that with the echo command redirected to a file. Code:
echo "I execute the gconftool-2 command with arguments: --type string --set /desktop/gnome/background/picture_filename $pictdir/${fnme[${i}]}" >/tmp/myscript.log |
Here is the output
I execute the gconftool-2 command with arguments: --type string --set /desktop/gnome/background/picture_filename /home/lxuser/wp/1.jpg at Wed Dec 23 17:18:01 IST 2009 Please Note the variable was wp_fn so I used $wp_fn in double quotes & also added `date` to expression in double quotes. the annoying thing is when I check string using gconf-editor or gcontool-2 then value has not changed & equals default. |
Here is the script for all ubuntu GNOME users to change wallpaper every 5 minutes ( tested in ubuntu 8.04 ).
All you have to do is copy desired wallpaper(jpg format) to `/Pictures & rename then as 0,1,2... Code:
#!/bin/bash Make it executable using 'chmod +x ~/Pictures/script' Add following entry to cron using 'crontab -e' */5 * * * * ~/Pictures/script You can verify by 'crontab -l' This will change wallpaper every 5 minutes. NOTE You can remove extension from all wallpaper files & also remove .jpg from script then you can use any image format ( tested with png ). If you find this post useful then thank me by pressing thumbs up button.Thank You. |
Quote:
Quote:
|
try to use
Quote:
BTW, if there are problems with cron, it will sent a mail with the errormessages. or look in the logfiles |
Done but no effect.
Is it possible that desktop wallpaper is locked. Also ran But got no message I also found that /home/lxuser/.gconf/desktop/gnome/background/%gconf.xml is also changing as desired but screen does not refresh.Why ? |
One of MANY MANY bugs in Ubuntu's?
|
Quote:
sumeet inani: I saw you use /home/path instead of exporting $HOME as I suggested. You should not. gconftool-2 uses $HOME/.gconf and if $HOME is not set, it won't work. DO use that code at the start of your script: Code:
export HOME=/home/myuser |
|
Quote:
|
Quote:
see http://www.pubbs.net/gnome/200910/3988/ |
Quote:
To test it, I suggest doing that: Code:
env | sed "s/^/export /g" | sed "s/=/=\"/" | sed "s/$/\"/g" >/tmp/env.sh Code:
. /tmp/env.sh |
As i have said that even if I mention full address without using ~ or $HOME etc. then also wallpaper does not change in ubuntu 9.04 though it does in ubuntu 8.04.
So I think repo is right. I will also modify script a little bit in previous post so that atleast ubuntu 8.04 users can store all their wallpaper files numbered 0.jpg,1.jpg,.. and script in ~/Pictures. |
Edit: duplicate post
|
All times are GMT -5. The time now is 03:02 PM. |