Skip to content

Instantly share code, notes, and snippets.

@bohoomil
Created December 6, 2011 19:11
Show Gist options
  • Save bohoomil/1439487 to your computer and use it in GitHub Desktop.
Save bohoomil/1439487 to your computer and use it in GitHub Desktop.
Acrobat Reader launcher fix
--- acroread.old 2011-12-16 13:20:01.933286548 +0100
+++ acroread 2011-12-16 13:21:55.579337535 +0100
@@ -526,7 +526,7 @@ fi
if [ -z "$mozillaPath" ]; then
MozPath="`gconftool-2 -g /desktop/gnome/url-handlers/http/command 2>/dev/null | cut -d ' ' -f1 2>/dev/null`"
[ -x "${MozPath}" ] || MozPath="`Which "$MozPath"`"
- mozillaPath="`readlink "$MozPath" | xargs dirname`"
+ [ -n "${MozPath}" ] || mozillaPath="`readlink "$MozPath" | xargs dirname`"
if [ -n "$mozillaPath" ] && $TestCmd $TestCmdOption "$mozillaPath/libgtkembedmoz.so" || $TestCmd $TestCmdOption "$mozillaPath/libxul.so" ; then
MOZILLA_COMP_PATH="$mozillaPath"
export MOZILLA_COMP_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment