glib/gio/xdgmime
Philip Withnall b6f7f37427 xdgmime: Add xdg_mime_set_dirs() method to override XDG envvars
In order to make xdgmime properly relocatable so that unit tests can use
it without it reading and modifying the user’s actual xdgmime files, and
without the need to call setenv() (and get tied up with thread safety
problems), add a xdg_mime_set_dirs() method to allow the dirs to be
overridden. They will still default to the values of $XDG_DATA_HOME and
$XDG_DATA_DIRS.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2018-12-17 17:16:03 +00:00
..
.gitignore gio/ docs/reference/gio Merged gio-standalone into glib. 2007-11-26 16:13:05 +00:00
Makefile.am Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
meson.build Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmime.c xdgmime: Add xdg_mime_set_dirs() method to override XDG envvars 2018-12-17 17:16:03 +00:00
xdgmime.h xdgmime: Add xdg_mime_set_dirs() method to override XDG envvars 2018-12-17 17:16:03 +00:00
xdgmimealias.c Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmimealias.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimecache.c xdgmime: Add better detection for text vs. binary and zero-sized files 2018-05-10 11:46:17 +01:00
xdgmimecache.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimeglob.c Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmimeglob.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimeicon.c Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmimeicon.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimeint.c xdgmime: Add better detection for text vs. binary and zero-sized files 2018-05-10 11:46:17 +01:00
xdgmimeint.h xdgmime: Add better detection for text vs. binary and zero-sized files 2018-05-10 11:46:17 +01:00
xdgmimemagic.c Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmimemagic.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimeparent.c Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmimeparent.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00