mozillahispano is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

mozillahispano / XulTitles!

Mozilla-based app to edit and create subtitles for open video files

Clone this repository (size: 85.3 KB): HTTPS / SSH
hg clone https://bitbucket.org/mozillahispano/xultitles
hg clone ssh://hg@bitbucket.org/mozillahispano/xultitles

XulTitles! / launcherFf.sh

#!/bin/bash

BASEDIR=`dirname "$0"`

#absolute path
TMP=`echo "X${BASEDIR}" | grep "^X/"`
if test -z ${TMP}; then
    BASEDIR="${PWD}/${BASEDIR}"
fi

BINDIR="${BASEDIR}/bin"
LIBDIR="${BASEDIR}/lib"
PLUGINDIR="${BASEDIR}/plugins"

XULRUNNER="/Applications/Firefox.app/Contents/MacOS/firefox -app "

if test "${JSCONSOLE}" = "yes" -o "${JSCONSOLE}" = "y"; then
    JSCONSOLE="-jsconsole"
fi

INIFILE="${BASEDIR}/application.ini"

export MOZ_PLUGIN_PATH=${PLUGINDIR}

if [ -z "${LD_LIBRARY_PATH}" ]; then
    export LD_LIBRARY_PATH=${LIBDIR}
else
    export LD_LIBRARY_PATH=${LIBDIR}:$LD_LIBRARY_PATH
fi

XINIT=

if [ "$1" != "" ]; then
   XINIT="xinit" 
fi

echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}"
echo "MOZ_PLUGIN_PATH=${PLUGINDIR}"
echo "${XINIT} ${XULRUNNER} ${INIFILE}"

${XINIT} ${XULRUNNER} ${INIFILE} ${JSCONSOLE}