[libvirt] [PATCH v2 1/3] util: command: Introduce virCommandAddEnvXDG helper

Daniel P. Berrangé berrange at redhat.com
Fri Mar 15 10:17:49 UTC 2019


On Fri, Mar 08, 2019 at 01:00:47PM +0100, Erik Skultety wrote:
> 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 at redhat.com>
> ---
>  src/libvirt_private.syms |  1 +
>  src/util/vircommand.c    | 21 +++++++++++++++++++++
>  src/util/vircommand.h    |  2 ++
>  3 files changed, 24 insertions(+)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list