[Esbox-users] cannot start esbox. starting esbox displays empty dialog on Ubuntu Karmic

Ed.Swartz at nokia.com Ed.Swartz at nokia.com
Tue Nov 17 19:27:56 EET 2009


Hi,

Not that I know of. what environment variable do you suspect?
[[[ejs]]] Hmm, it doesn't look there are actually any variables which would affect dash (at least not according to the man page).  But who knows?

I guess now can you try: "dpkg -l bash" , "dpkg -l dash" to see what versions you have.  Also, a "set" listing would be useful (excise any confidential info though).

No. using bash gives this error:
./esbox.sh: line 17: syntax error near unexpected token `else'
./esbox.sh: line 17: `else'
I have to change the help() -> help in order to get past the script errors.
[[[ejs]]] The line number doesn't match with what I have, and I'm not sure if your earlier edits are responsible.

So just to be extra sure, I'm attaching the latest and greatest version of the script.  Could you try it?  It doesn't have your edits in it yet; I just want to verify everything.

And continued thanks for helping ferret out these issues...

-- Ed

------------------------
#!/bin/sh

# This script sets up the environment to run Eclipse in newer
# versions of Linux which are slightly incompatible with Eclipse 3.4.2.

help() {
 echo "Note: xulrunner 1.8 should be installed if Eclipse crashes unexpectedly"
 echo "      on startup, hangs with an empty dialog, fails to show hover help,"
 echo "      crashes in certain wizards, etc."
 echo ""
 echo "Try:  sudo apt-get install xulrunner   in Ubuntu"
 echo ""
 echo "See https://garage.maemo.org/tracker/index.php?func=detail&aid=4689&group_id=192&atid=1420"
}

check_version() {
 PROG="$1"
 if [ ! -z "$PROG" ] && [ -e "$PROG" ] ; then
  VERSION=`$PROG -v 2>&1 | awk '{print $3}' | cut -d. -f1,2`
  test "$VERSION" = "1.8"
 else
  return 1
 fi
}

# first, Eclipse depends on an old version of xulrunner.
if [ -z "$XULRUNNER" ] ; then
 XULRUNNER=`which xulrunner`
 if ! check_version $XULRUNNER ; then
  XULRUNNER=/usr/lib/xulrunner/xulrunner
  if ! check_version $XULRUNNER ; then
   XULRUNNER=""
  fi
 fi
fi

XULOPTS=""
if [ -z "$XULRUNNER" ] ; then
 help
else
 XULOPTS="-vmargs -Dorg.eclipse.swt.browser.XULRunnerPath=$XULRUNNER"
 echo "Using xulrunner: $XULRUNNER"
fi


# This is a fix for dependencies on GTK 2.16 (and older) behavior, which
# if unfixed, results in annoying dialog behavior where the mouse cannot
# properly click buttons, use tables, etc.
export GDK_NATIVE_WINDOWS=true

PROGRAM=esbox
INSTALL_DIR=`dirname $0`
if [ ! -e "$INSTALL_DIR/$PROGRAM" ]  ; then INSTALL_DIR=. ; fi
"$INSTALL_DIR"/$PROGRAM $XULOPTS "$@"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://garage.maemo.org/pipermail/esbox-users/attachments/20091117/8d29ac63/attachment.htm 


More information about the Esbox-users mailing list