Re: Background Doesn't Change via cron(8)
- From: Ghee Teo <Ghee Teo Sun COM>
- To: Shawn H Corey <shawnhcorey gmail com>
- Cc: gconf-list gnome org
- Subject: Re: Background Doesn't Change via cron(8)
- Date: Mon, 05 Oct 2009 11:10:18 +0100
Shawn H Corey wrote:
Emmanuele Bassi wrote:
On Sat, 2009-10-03 at 10:06 -0400, Shawn H Corey wrote:
* It changes ~/.gconf/desktop/gnome/background/%gconf.xml
oh, god. why are you doing this?
use gconftool to change the gconf database.
Apparently, gconfd-2 is not getting informed of the change. Its cache
still has the old values. How do I fix this?
by using the right tool for the job.
ciao,
Emmanuele.
You mean like this?
gconftool-2 -t string -s /desktop/gnome/background/picture_filename
$WALLPAPERS/${ALIST[$number]}
I am; doesn't work with cron(8).
There is some problem with this approach:
- the command only changes the gconf value for the cron user (not any of
the user on the system)
- if you are changing
~/.gconf/desktop/gnome/background/%gconf.xml
directly, that doesn't get pick up until gconfd-2 is restarted since
gconfd-2 is monitoring memory data not persistent data when it is running.
If you want to change the desktop back ground value completely using
cron tab, this may work:
- gconftool-2 --direct --config-source \
xml:readwrite:/etc/gconf/gconf.xml.defaults --type dtring --set \
/desktop/gnome/background/picture_filename <filename>
- pkill gconfd-2
Pretty nasty hacks, since that pkill gconfd-2 is trying to ask all
running user's gconfd-2 to stop and will be restarted when its service
is required.
-Ghee
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]