#!/bin/sh

if [ -n "$GI_TYPELIB_PATH" ]; then
    export GI_TYPELIB_PATH=/usr/local/lib/gnome-shell
else
    export GI_TYPELIB_PATH=/usr/local/lib/gnome-shell:$GI_TYPELIB_PATH
fi

if [ -n "$LD_LIBRARY_PATH" ] ; then
    export LD_LIBRARY_PATH=/usr/local/lib/gnome-shell
else
    export LD_LIBRARY_PATH=/usr/local/lib/gnome-shell:$LD_LIBRARY_PATH
fi

/usr/local/bin/gjs-console -I /usr/local/share/gnome-shell/js -c "const Main = imports.extensionPrefs.main; Main.main(ARGV);" "$@"
