Make sure we don't deactivate un-activated plugins or re-activate already activated...
[ardour.git] / gtk2_ardour / ardour.sh.in
1 #!/bin/sh
2
3 export GTK_PATH=%INSTALL_PREFIX%/%LIBDIR%/ardour2:$GTK_PATH
4
5 export LD_LIBRARY_PATH=%INSTALL_PREFIX%/%LIBDIR%/ardour2:$LD_LIBRARY_PATH 
6 # DYLD_LIBRARY_PATH is for Darwin
7 export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
8
9 MLOCK_LIMIT=$(ulimit -l)
10 if [ "$MLOCK_LIMIT" != "unlimited" ]; then
11         echo "WARNING: Your system has a limit for maximum amount of locked memory!"
12         echo "This might cause Ardour to run out of memory before your system runs out of memory. You can view the memory limit with 'ulimit -l', and it is normally controlled by /etc/security/limits.conf"
13
14 fi
15
16 exec %INSTALL_PREFIX%/%LIBDIR%/ardour2/ardour-%VERSION% "$@"
17
18