change format of the ardourVST startup script to match what we do for the non-wine...
[ardour.git] / vst / ardourvst.in
index 8297e1870b5abd5b18e221aedc64ae4056baf56f..0e08e40aeeed3112d93597cbf13ef9e8e5accac2 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/sh
 
-# NOTE: the use of PREFIX is incorrect - it should be INSTALL_PREFIX,
-# but somehow scons puts leading /'s on INSTALL_PREFIX and that causes
-# wine to be unable to find the .exe.so file
+export GTK_PATH=@LIBDIR@/ardour3${GTK_PATH:+:$GTK_PATH}
+export LD_LIBRARY_PATH=@LIBDIR@/ardour3${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
+
+exec wine @LIBDIR@/ardour3/ardour_vst.exe.so "$@"
 
-LD_LIBRARY_PATH=%PREFIX%/lib/ardour2:$LD_LIBRARY_PATH exec wine %PREFIX%/lib/ardour2/ardour_vst.exe.so "$@"