Re: [Vala] GSettings uses memory backend
- From: rastersoft <raster rastersoft com>
- To: vala-list gnome org
- Subject: Re: [Vala] GSettings uses memory backend
- Date: Fri, 12 Aug 2011 00:50:28 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
El 11/08/11 12:28, Sébastien Wilmet escribió:
On Thu, Aug 11, 2011 at 10:39:26AM +0200, rastersoft wrote:
I'm trying to use gsettings in my vala code, but it insists in
use the memory backend (GLib-GIO-Message: Using the 'memory'
GSettings backend. Your settings will not be saved or shared
with other applications.). Several pages say to install
libdconf-dbus-1 and libdconf; I did it, but still uses the wrong
backend. Other apps works fine (because using dconf-editor I can
see and change their settings). I'm using Ubuntu 11.04 with
gnome 2 (not Unity).
Maybe try to modify the GSETTINGS_BACKEND environment variable,
for example:
$ GSETTINGS_BACKEND=dconf your_program
I tried it, but doesn't work. It seems that dconf daemon is not
available on Ubuntu 11.04 :(
Anyway, I found this:
http://answerpot.com/showthread.php?82905-GSettings+and+you/Page2
Where, in the third message, it talks about the keyfile backend. To
use it:
g_settings_backend_setup_keyfile ("blah", filename);
settings = g_settings_new_with_context ("org.bla.bla", "blah");
Unfortunately, I can't find those two calls in the documentation,
neither in the VAPI files in my hard disk. But in this file, it is:
http://repo.or.cz/w/vala-gnome.git/blame/0d5e043582c74e15a1fdbca6543fec6c1a6b5104:/vapi/packages/gio-2.0/gio-2.0.gi
Can someone help me to discover how to use it?
Thanks.
- --
Nos leemos
RASTER (Linux user #228804)
raster rastersoft com http://www.rastersoft.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk5EXLEACgkQXEZvyfy1ha9IvwCg15k32yqW86XhiK0gHGppDVw1
5gEAoKh7kAslu4Qo/HdwQlECjswS0Igm
=6lsF
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]