Skip to content

Commit 1549069

Browse files
committed
macos: Set GDK_PIXBUF_MODULEDIR
It seems by default the Homebrew binary ends up using the package-specific directory, so this finds the default loaders but not the one from the librsvg package.
1 parent c7b2c41 commit 1549069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macos/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,5 @@ def copy_and_install_name_tool(src, dest):
112112

113113
module_dir = f"{RESOURCEDIR}/lib/gdk-pixbuf-2.0/{pixbuf_ver}"
114114
with open(f"{module_dir}/loaders.cache", 'w') as cachefile:
115-
cache = subprocess.check_output(['gdk-pixbuf-query-loaders']).decode()
115+
cache = subprocess.check_output(['gdk-pixbuf-query-loaders'], env=dict(os.environ, GDK_PIXBUF_MODULEDIR=pixbuf_dir)).decode()
116116
cachefile.write(re.sub(f'{PREFIX}/.+/gdk-pixbuf-2.0/', '@executable_path/../Resources/lib/gdk-pixbuf-2.0/', cache))

0 commit comments

Comments
 (0)