mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 09:28:54 +02:00
gutils: Add internal API to override XDG directories
Add a new internal function, g_set_user_dirs(), which will safely override the values returned by g_get_user_data_dir() and friends, and the value returned by g_get_home_dir(). This is intended to be used by unit tests, and will be hooked up to them in a following commit. This can be called as many times as needed by the current process. It’s thread-safe. It does not modify the environment, so none of the changes are propagated to any subsequently spawned subprocesses. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/glib/issues/538
This commit is contained in:
@@ -64,6 +64,7 @@ IGNORE_HFILES = \
|
||||
glib-init.h \
|
||||
gconstructor.h \
|
||||
valgrind.h \
|
||||
gutilsprivate.h \
|
||||
gvalgrind.h \
|
||||
$(NULL)
|
||||
|
||||
|
@@ -36,6 +36,7 @@ if get_option('gtk_doc')
|
||||
'glib-init.h',
|
||||
'gconstructor.h',
|
||||
'valgrind.h',
|
||||
'gutilsprivate.h',
|
||||
'gvalgrind.h',
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user