summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-01-12 12:56:09 -0500
committerRyan Lortie <desrt@desrt.ca>2013-01-12 12:56:09 -0500
commitebbbb5393423ae071fb0b8fe8d4f2cce85bf11fd (patch)
tree92faf3c33c3e9bf8fe88b84e1a9f620edfaa6390 /service
parent610fd3c06f2b581c69d374de7e5e0e8bef8359bf (diff)
downloaddconf-ebbbb5393423ae071fb0b8fe8d4f2cce85bf11fd.tar.gz
keyfile: explicitly use local GVfs
Avoid initialising all of GVfs for dconf-service in order to monitor a local file for changes. See https://bugzilla.gnome.org/show_bug.cgi?id=691618 for the possibility of a better fix.
Diffstat (limited to 'service')
-rw-r--r--service/dconf-keyfile-writer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/dconf-keyfile-writer.c b/service/dconf-keyfile-writer.c
index 29383f5..d5305a3 100644
--- a/service/dconf-keyfile-writer.c
+++ b/service/dconf-keyfile-writer.c
@@ -188,7 +188,8 @@ dconf_keyfile_writer_begin (DConfWriter *writer,
kfw->lock_filename = g_strconcat (kfw->filename, "-lock", NULL);
g_free (filename_base);
- file = g_file_new_for_path (kfw->filename);
+ /* See https://bugzilla.gnome.org/show_bug.cgi?id=691618 */
+ file = g_vfs_get_file_for_path (g_vfs_get_local (), kfw->filename);
kfw->monitor = g_file_monitor_file (file, G_FILE_MONITOR_NONE, NULL, NULL);
g_object_unref (file);