]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
vbox: use user cache dir when screenshotting.
authorDawid Zamirski <dzamirski@datto.com>
Mon, 9 Mar 2015 15:07:46 +0000 (11:07 -0400)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 12 Mar 2015 16:53:12 +0000 (17:53 +0100)
commit36a8eb8001e9f32c46d56e3ca3d6e87ac16ec87d
tree2d7d306b686f53ce22536ee70258ffa27e9d68db
parent48461b169e6657df6d12fc53d3bd13ce01d69bfb
vbox: use user cache dir when screenshotting.

For VBOX it's most likely that the connection is vbox:///session and it
runs with local non-root account. This caused permission denied when
LOCALSTATEDIR was used to create temp file. This patch makes use of the
virGetUserCacheDirectory to address this problem for non-root users.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/vbox/vbox_common.c