Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[product] Add launching script for arch linux.
close #523 Signed-off-by: Stéphane Galland <galland@arakhne.org>
- Loading branch information
1 parent
1009487
commit c16b58d
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
eclipse-products/io.sarl.lang.updatesite/rootfiles/linux/eclipse-sarl-archlinux.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "$@" |