Comment 13 for bug 130218

Revision history for this message
allankelly (allankelly) wrote :

Oh, damn sorry that's wrong! Too hasty.

THIS is the script I use. Sorry for the previous post, it should be edited ... but I can't do that it seems.

MODS: Could you delete the solution above & indicate this is the working work-around please.

Cheers, al.

--

gxine_hack.sh Version 1.1

--

#! /bin/sh
# gxine_hack.sh by allankelly AT gmail DOT com
# 2010-05-02 v.1.1
# Under Ubuntu 10.04 LTS, gxine install fails to run due to dependency on
# Firefox library libmozjs.so. This library is installed under version-specific
# Firefox dir under /usr/lib. So, code below gets the highest numeric
# /usr/lib/firefox-* directory and appends it to LD_LIBRARY_PATH, then runs
# gxine. This should continue to work through Firefox upgrades.
for DIR in `ls -d /usr/lib/firefox-* | grep -v addons | sort -n`
do
    FF_LIB_DIR=$DIR
done
if [ -z $LD_LIBRARY_PATH ]
then
    export LD_LIBRARY_PATH=$FF_LIB_DIR
else
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$FF_LIB_DIR
fi
echo "LD_LIBRARY_PATH == $LD_LIBRARY_PATH"
gxine