#!/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);" "$@"
