change format of the ardourVST startup script to match what we do for the non-wine...
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 29 Feb 2012 19:11:06 +0000 (19:11 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 29 Feb 2012 19:11:06 +0000 (19:11 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11554 d708f5d6-7413-0410-9779-e7cbd77b26cf

vst/ardourvst.in

index 082be1c2fee6dbdabaf97796a66e9feda55292a5..0e08e40aeeed3112d93597cbf13ef9e8e5accac2 100644 (file)
@@ -1,10 +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}
 
-export GTK_PATH=%PREFIX%/lib/ardour3:$GTK_PATH
+exec wine @LIBDIR@/ardour3/ardour_vst.exe.so "$@"
 
-LD_LIBRARY_PATH=%PREFIX%/lib/ardour3:$LD_LIBRARY_PATH exec wine %PREFIX%/lib/ardour3/ardour_vst.exe.so "$@"