remove debugging message
[ardour.git] / gtk2_ardour / ardour.sh.in
index 835cbd4582e06e7f2953f85197ac45e459a3d51d..c661467d014a7acafbb5acc5edee12e9e63858e3 100644 (file)
@@ -6,6 +6,13 @@ export LD_LIBRARY_PATH=%INSTALL_PREFIX%/%LIBDIR%/ardour2:$LD_LIBRARY_PATH
 # DYLD_LIBRARY_PATH is for Darwin
 export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
 
-exec %INSTALL_PREFIX%/%LIBDIR%/ardour2/ardour.bin $*
+MLOCK_LIMIT=$(ulimit -l)
+if [ "$MLOCK_LIMIT" != "unlimited" ]; then
+       echo "WARNING: Your system has a limit for maximum amount of locked memory!"
+        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"
+
+fi
+
+exec %INSTALL_PREFIX%/%LIBDIR%/ardour2/ardour-%VERSION% $*