#!/bin/bash # break out of the GARNOME env by unsetting LD_LIBRARY_PATH # to support starting apps relying on the system glib unset LD_LIBRARY_PATH # clean the PATH, we do not want to start any app depending on the new glib PATH=${PATH/${GNOME_PREFIX}\/bin:/} # call the given executable with all parameters # if none given, invoke a bash if [ "$1" ]; then $@ else /bin/bash fi exit