aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Jon McCann <william.jon.mccann@gmail.com>2012-05-03 12:36:27 -0400
committerDaniel P. Berrange <berrange@redhat.com>2012-05-14 15:15:58 +0100
commit32a9aac2e04c991340b66c855a1095e4e6445e54 (patch)
tree8eed8200e2fcaffe072607456290ac5d68d9b089 /src/remote/remote_driver.c
parentRelease of libvirt-0.9.12 (diff)
downloadlibvirt-32a9aac2e04c991340b66c855a1095e4e6445e54.tar.gz
libvirt-32a9aac2e04c991340b66c855a1095e4e6445e54.tar.bz2
libvirt-32a9aac2e04c991340b66c855a1095e4e6445e54.zip
Use XDG Base Directories instead of storing in home directory
As defined in: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html This offers a number of advantages: * Allows sharing a home directory between different machines, or sessions (eg. using NFS) * Cleanly separates cache, runtime (eg. sockets), or app data from user settings * Supports performing smart or selective migration of settings between different OS versions * Supports reseting settings without breaking things * Makes it possible to clear cache data to make room when the disk is filling up * Allows us to write a robust and efficient backup solution * Allows an admin flexibility to change where data and settings are stored * Dramatically reduces the complexity and incoherence of the system for administrators
Diffstat (limited to 'src/remote/remote_driver.c')
-rw-r--r--src/remote/remote_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 7863b73e3..4a9299a5e 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -578,12 +578,12 @@ doRemoteOpen (virConnectPtr conn,
case trans_unix:
if (!sockname) {
if (flags & VIR_DRV_OPEN_REMOTE_USER) {
- char *userdir = virGetUserDirectory(getuid());
+ char *userdir = virGetUserRuntimeDirectory(getuid());
if (!userdir)
goto failed;
- if (virAsprintf(&sockname, "@%s" LIBVIRTD_USER_UNIX_SOCKET, userdir) < 0) {
+ if (virAsprintf(&sockname, "@%s/" LIBVIRTD_USER_UNIX_SOCKET, userdir) < 0) {
VIR_FREE(userdir);
goto out_of_memory;
}