9bcce4f271
Environment variables should be checked for zero length, instead of non-zero. This prevented the script to run correctly in a jhbuild shell for example. https://bugzilla.gnome.org/show_bug.cgi?id=693031
16 lines
392 B
Bash
16 lines
392 B
Bash
#!/bin/sh
|
|
|
|
if [ -z "$GI_TYPELIB_PATH" ]; then
|
|
export GI_TYPELIB_PATH=@pkglibdir@
|
|
else
|
|
export GI_TYPELIB_PATH=@pkglibdir@:$GI_TYPELIB_PATH
|
|
fi
|
|
|
|
if [ -z "$LD_LIBRARY_PATH" ] ; then
|
|
export LD_LIBRARY_PATH=@pkglibdir@
|
|
else
|
|
export LD_LIBRARY_PATH=@pkglibdir@:$LD_LIBRARY_PATH
|
|
fi
|
|
|
|
@GJS_CONSOLE@ -I @pkgdatadir@/js -c "const Main = imports.extensionPrefs.main; Main.main(ARGV);" "$@"
|