Skip to content

Commit

Permalink
[product] Add launching script for arch linux.
Browse files Browse the repository at this point in the history
close #523

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Oct 25, 2016
1 parent 1009487 commit c16b58d
Showing 1 changed file with 24 additions and 0 deletions.
@@ -0,0 +1,24 @@
#!/bin/bash

MYSELF=`readlink -f "$0"`
echo "MYSELF=$MYSELF"
CDIR=`dirname "$MYSELF"`
echo "CDIR=$CDIR"

if [ -r "$HOME/.eclipse/eclipserc" ]
then
echo "Loading user configuration"
. "$HOME/.eclipse/eclipserc"
fi

# Use GTK 2
export SWT_GTK=0
# Bug fix for overlay scrollbars
export LIBOVERLAY_SCROLLBAR=0

# Remove /usr/lib/jni from LD_LIBRARY_PATH to avoid loading from Eclipse
export LD_LIBRARY_PATH=`echo "$LD_LIBRARY_PATH" | perl -p -e 's!(/usr/lib/jni:)|(:?/usr/lib/jni)!!'`

echo "Native Library Path: $LD_LIBRARY_PATH"
echo "Launching SARL IDE ${project.version}"
exec "$CDIR/eclipse-sarl" $VMARGS "$@"

0 comments on commit c16b58d

Please sign in to comment.