mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Add call to g_type_init() for glib < 2.36
This commit is contained in:
parent
0b50dc91ef
commit
e707342bf9
1 changed files with 1 additions and 0 deletions
|
|
@ -233,6 +233,7 @@ class GioURI(URIGetter):
|
|||
self.libgio = self.get_library()
|
||||
self.available = bool(self.libgio)
|
||||
if self.available:
|
||||
self.libgio.g_type_init() # for glib < 2.36
|
||||
self.libgio.g_file_new_for_path.restype = ctypes.c_void_p
|
||||
self.libgio.g_file_get_uri.argtypes = [ctypes.c_void_p]
|
||||
self.libgio.g_object_unref.argtypes = [ctypes.c_void_p]
|
||||
|
|
|
|||
Loading…
Reference in a new issue