summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@endlessos.org>2021-01-04 18:50:49 +0000
committerBastien Nocera <hadess@hadess.net>2021-09-27 14:02:35 +0000
commit3ae3ed6182e776c300a3346f44b965d369227a6d (patch)
tree937666d7b32a451c85fb0e0bf9f257c5e8ce83de
parent28b70c4129c7589cd7066ef327eec418b20793db (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.c2
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);