Skip to content

Commit

Permalink
Move the launcher into the right directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Marie Verdun authored and wwmayer committed Jun 16, 2016
1 parent c473ef4 commit cc73e32
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 35 deletions.
22 changes: 20 additions & 2 deletions vagrant/Xenial/bin/launcher
@@ -1,4 +1,21 @@
#!/bin/bash
export I18NPATH=$SNAP/usr/share/i18n
export LOCPATH=$SNAP_USER_DATA

LANG=en_US
ENC=UTF-8
LOC="$LANG.$ENC"

# generate a locale so we get properly working charsets and graphics
if [ ! -e $SNAP_USER_DATA/$LOC ]; then
$SNAP/usr/bin/localedef --prefix=$SNAP_USER_DATA -f $ENC -i $LANG $SNAP_USER_DATA/$LOC
fi

export LC_ALL=$LOC
export LANG=$LOC
export LANGUAGE=${LANG%_*}
env >& $SNAP_USER_DATA/env

export LIBGL_DRIVERS_PATH=$SNAP/usr/lib/x86_64-linux-gnu/dri
export GTK_PATH=$SNAP/usr/lib/x86_64-linux-gnu/gtk-2.0/modules
export LD_LIBRARY_PATH=$SNAP/usr/lib/x86_64-linux-gnu/gtk-2.0/modules:$LD_LIBRARY_PATH
Expand All @@ -9,7 +26,8 @@ export PYTHONHOME="$SNAP/usr"
export PYTHONPATH="$SNAP/usr"
export XDG_DATA_DIR="$SNAP/usr/share/glib-2.0/schemas"
export GSETTINGS_SCHEMA_DIR="$SNAP/usr/share/glib-2.0/schemas"
export I18NPATH=$SNAP/usr/share/i18n/locales
export LOCPATH=$SNAP/usr/lib/locale/
export LANG=en_US.UTF-8
export FREECAD_USER_DATA="$SNAP_USER_DATA"
export XDG_CONFIG_HOME="$SNAP_USER_DATA"
exec "$SNAP/opt/local/FreeCAD-0.17/bin/FreeCAD" -u $SNAP_USER_DATA/user.cfg -s $SNAP_USER_DATA/system.cfg "$@"

33 changes: 0 additions & 33 deletions vagrant/Xenial/launcher

This file was deleted.

0 comments on commit cc73e32

Please sign in to comment.