summaryrefslogtreecommitdiff
path: root/community/libvirt/xdg.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/libvirt/xdg.patch')
-rw-r--r--community/libvirt/xdg.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/libvirt/xdg.patch b/community/libvirt/xdg.patch
new file mode 100644
index 000000000..0a12c83b5
--- /dev/null
+++ b/community/libvirt/xdg.patch
@@ -0,0 +1,14 @@
+diff --git a/src/rpc/virnetsocket.c b/src/rpc/virnetsocket.c
+index 0b32ffe..08dfbb0 100644
+--- a/src/rpc/virnetsocket.c
++++ b/src/rpc/virnetsocket.c
+@@ -97,6 +97,9 @@ static int virNetSocketForkDaemon(const char *binary)
+ NULL);
+
+ virCommandAddEnvPassCommon(cmd);
++ virCommandAddEnvPass(cmd, "XDG_CACHE_HOME");
++ virCommandAddEnvPass(cmd, "XDG_CONFIG_HOME");
++ virCommandAddEnvPass(cmd, "XDG_RUNTIME_DIR");
+ virCommandClearCaps(cmd);
+ virCommandDaemonize(cmd);
+ ret = virCommandRun(cmd, NULL);