diff options
author | William Jon McCann <jmccann@redhat.com> | 2012-02-07 12:14:48 +0100 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2012-02-07 12:14:48 +0100 |
commit | f81e381b58bf4dc8ea42ceb50311d4ef92677f72 (patch) | |
tree | 2341b81bab7e02ccb620bb31894f743565516978 | |
parent | 87b5115aa18bc13858ef0d5041855658a22822be (diff) | |
download | gvfs-f81e381b58bf4dc8ea42ceb50311d4ef92677f72.tar.gz |
Use user runtime dir for gvfs mounts
https://bugzilla.gnome.org/show_bug.cgi?id=646391
Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
-rw-r--r-- | client/gdaemonvfs.c | 2 | ||||
-rw-r--r-- | daemon/main.c | 2 | ||||
-rw-r--r-- | daemon/mount.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/client/gdaemonvfs.c b/client/gdaemonvfs.c index ae17c3c6..bb75da51 100644 --- a/client/gdaemonvfs.c +++ b/client/gdaemonvfs.c @@ -325,7 +325,7 @@ g_daemon_vfs_init (GDaemonVfs *vfs) vfs->wrapped_vfs = g_vfs_get_local (); - file = g_build_filename (g_get_home_dir(), ".gvfs", NULL); + file = g_build_filename (g_get_user_runtime_dir(), "gvfs", NULL); vfs->fuse_root = g_vfs_get_file_for_path (vfs->wrapped_vfs, file); g_free (file); diff --git a/daemon/main.c b/daemon/main.c index b07fa665..d83aaedc 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -106,7 +106,7 @@ main (int argc, char *argv[]) char *fuse_path; char *argv2[4]; - fuse_path = g_build_filename (g_get_home_dir (), ".gvfs", NULL); + fuse_path = g_build_filename (g_get_user_runtime_dir (), "gvfs", NULL); if (!g_file_test (fuse_path, G_FILE_TEST_EXISTS)) g_mkdir (fuse_path, 0700); diff --git a/daemon/mount.c b/daemon/mount.c index b016ac04..c2b7f8f3 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -735,7 +735,7 @@ register_mount (DBusConnection *connection, /* Keep in sync with fuse daemon */ fs_name = g_uri_escape_string (mount->stable_name, "+@#$., ", TRUE); - mount->fuse_mountpoint = g_build_filename (g_get_home_dir(), ".gvfs", fs_name, NULL); + mount->fuse_mountpoint = g_build_filename (g_get_user_runtime_dir(), "gvfs", fs_name, NULL); } mounts = g_list_prepend (mounts, mount); |