maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   How to take the "gconf" changes effect immediately? (https://talk.maemo.org/showthread.php?t=30109)

billcawell 2009-07-06 14:13

How to take the "gconf" changes effect immediately?
 
I have modified the file at : /var/lib/gconf/system/osso/connectivity/IAP/41de6c79-bf43-41e8-942c-d6c0253a13b7/%gconf.xml

I want to take the change effect immediately instead of restarting the N800.

I have tried several approaches:

1. ifconfig wlan0 down/up
2. /etc/init.d/networking restart
3. dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_mode_ind string:"flight/normal"
4. close X terminal and restart it.

But these above didn't work and I must still restart the machine to apply the change.

Does anybody know how to apply it immediately?

qwerty12 2009-07-06 14:17

Re: How to take the "gconf" changes effect immediately?
 
Er, by not editing the xml directly?

gconftool or gconf-editor.

billcawell 2009-07-06 14:32

Re: How to take the "gconf" changes effect immediately?
 
Quote:

Originally Posted by qwerty12 (Post 302297)
Er, by not editing the xml directly?

gconftool or gconf-editor.

I don't know how to modify the file %gconf.xml in a specific path.
So I had to use "vi" modifying this file.

pycage 2009-07-07 06:51

Re: How to take the "gconf" changes effect immediately?
 
You can use gconftool-2 for modifying gconf, e.g.

Code:

gconftool-2  --type    string    --set    /apps/myapp/somesetting "Some Value"
Directly editing the XML doesn't work because the XML is only the backend where gconf stores its data. It's not even safe to edit the XML while gconfd is running.

benny1967 2009-07-07 07:34

Re: How to take the "gconf" changes effect immediately?
 
i'd recommend http://maemo.org/downloads/product/OS2008/gconf-editor/ anyway.... isn't it all so much easier with a GUI?

billcawell 2009-07-08 13:56

Re: How to take the "gconf" changes effect immediately?
 
Thanks all! My problem has been solved by "gconftool-2".


All times are GMT. The time now is 18:25.

vBulletin® Version 3.8.8