toolbox-launcher 451 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/sh

CMD="`basename "$0"`"
EXTRA=

case "$CMD" in
	vim|vi)
		CMD=vim.gtk
		;;
	gvim)
		CMD=vim.gtk
		EXTRA=-g
		;;
	nc)
		CMD=nc.openbsd
		;;
	*)
		;;
esac

BAIRE Anthony's avatar
BAIRE Anthony committed
21 22 23
# needed when the user has a fancy TERM (eg: xterm-256color)
export TERMINFO="/.toolbox/lib/terminfo"

24 25 26
exec /.toolbox/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2					\
	--library-path /.toolbox/lib/x86_64-linux-gnu:/.toolbox/usr/lib/x86_64-linux-gnu	\
	"/.toolbox/usr/bin/$CMD" $EXTRA "$@"