diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-05-25 16:41:27 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-05-28 11:42:56 +0200 |
commit | 49e0128c483aa4a49860210ea51e00523ec26aaa (patch) | |
tree | c5bd6b36f5e4eb1faaebf44112fc63cacdec77ba /python | |
parent | 06680b15b4ee3184b57c9c910886a9ff8a7e58c0 (diff) | |
download | qemu-49e0128c483aa4a49860210ea51e00523ec26aaa.zip qemu-49e0128c483aa4a49860210ea51e00523ec26aaa.tar.gz qemu-49e0128c483aa4a49860210ea51e00523ec26aaa.tar.bz2 |
util/win32: simplify qemu_get_local_state_dir()
SHGetFolderPath() is a deprecated API:
https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shgetfolderpatha
It is a wrapper for SHGetKnownFolderPath() and CSIDL_COMMON_PATH is
mapped to FOLDERID_ProgramData:
https://docs.microsoft.com/en-us/windows/win32/shell/csidl
g_get_system_data_dirs() is a suitable replacement, as it will have
FOLDERID_ProgramData in the returned list. However, it follows the XDG
Base Directory Specification, if `XDG_DATA_DIRS` is defined, it will be
returned instead.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Message-Id: <20220525144140.591926-3-marcandre.lureau@redhat.com>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions