fix use of old .ardour dir for VST presets
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 10 May 2007 11:39:35 +0000 (11:39 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 10 May 2007 11:39:35 +0000 (11:39 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1829 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/vst_plugin.cc

index afba6b5cfbe8dc6e0bbf8754695d533d6c6d1b51..9ec6994e3c25937ac61138ee38cd9e3cbd2354b5 100644 (file)
@@ -158,8 +158,8 @@ VSTPlugin::get_state()
                string path;
                struct stat sbuf;
 
-               path = getenv ("HOME");
-               path += "/.ardour/vst";
+               path = get_user_ardour_path ();
+               path += "vst";
 
                if (stat (path.c_str(), &sbuf)) {
                        if (errno == ENOENT) {