https://bugzilla.novell.com/show_bug.cgi?id=382739 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=382739#c18 --- Comment #18 from Mike Fabian <mfabian@novell.com> 2008-04-28 10:28:56 MST --- So how about this?: # if MOZILLA_COMP_PATH is already set, use it (useful for debugging?) # if not, get it from the user config or search it in the system: if [ -z "$MOZILLA_COMP_PATH" ]; then # First try to get MOZILLA_COMP_PATH from the user config file. # But use it only if it points to a location where libgtkembedmoz.so # really exists: greConfigFile="${HOME}/.adobe/Acrobat/$majorRelease/Preferences/acrogre.conf" if [ -f "$greConfigFile" ]; then mozillaPath="`cat "$greConfigFile"`" if [ -x "$mozillaPath/libgtkembedmoz.so" ]; then MOZILLA_COMP_PATH="$mozillaPath" export MOZILLA_COMP_PATH fi fi if [ -z "$MOZILLA_COMP_PATH" ]; then # There was either nothing in the user config file (first start ever # of acroread?) or something invalid. Try to find # libgtkembedmoz.so in the system: # (the last match in the glob pattern will win. glob patterns # are sorted alphabetically, i.e the symlink # /usr/lib/xulrunner-1.8.1 which points to the current version # will win over any specific version /usr/lib/xulrunner-1.8.1.1x). for lib in /usr/lib/seamonkey/libgtkembedmoz.so /usr/lib/xulrunner-*/libgtkembedmoz.so do if [ -x $lib ]; then MOZILLA_COMP_PATH="$(dirname $lib)" export MOZILLA_COMP_PATH fi done fi fi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.