]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: command: Introduce virCommandAddEnvXDG helper
authorErik Skultety <eskultet@redhat.com>
Mon, 4 Mar 2019 11:47:08 +0000 (12:47 +0100)
committerErik Skultety <eskultet@redhat.com>
Fri, 15 Mar 2019 15:41:26 +0000 (16:41 +0100)
commit2d69af29073aa3dc2dc5b79afcecaa703b81125a
tree7cdec164ffc16ec684ea33555a7b22cb42edb3fa
parent0b7d544c8842841b27de0d88234148794ce4545e
util: command: Introduce virCommandAddEnvXDG helper

Some modules/libraries within QEMU could make use of the XDG_ vars when
writing their data to the disk. Define the most common XDG variables
and point them to the specific driver's libDir, i.e.

XDG_CACHE_HOME -> /var/lib/libvirt/<driver>/.cache
XDG_DATA_HOME -> /var/lib/libvirt/<driver>/.local/share
XDG_CONFIG_HOME -> /var/lib/libvirt/<driver>/.config

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/libvirt_private.syms
src/util/vircommand.c
src/util/vircommand.h