diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2021-01-04 18:50:49 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2021-09-27 14:02:35 +0000 |
commit | 3ae3ed6182e776c300a3346f44b965d369227a6d (patch) | |
tree | 937666d7b32a451c85fb0e0bf9f257c5e8ce83de | |
parent | 28b70c4129c7589cd7066ef327eec418b20793db (diff) |
xdgmime: Call xdg_mime_init() before xdg_mime_list_mime_parents()
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Fixes: #9
-rw-r--r-- | src/xdgmime.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xdgmime.c b/src/xdgmime.c index 90a0ed0..f2b534f 100644 --- a/src/xdgmime.c +++ b/src/xdgmime.c @@ -824,6 +824,8 @@ xdg_mime_list_mime_parents (const char *mime) char **result; int i, n; + xdg_mime_init (); + if (_caches) return _xdg_mime_cache_list_mime_parents (mime); |