stop using paul's .jackdrc as the hard coded path
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 15 Aug 2007 18:06:35 +0000 (18:06 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 15 Aug 2007 18:06:35 +0000 (18:06 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2306 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/engine_dialog.cc

index 908f5d222a501f595479889b56169de7b933b9a9..cef0207d2a60e4d9e650a64658c441f20b7b6b24 100644 (file)
@@ -409,9 +409,12 @@ EngineControl::start_engine ()
 
        build_command_line (args);
 
-       ofstream jackdrc ("/home/paul/.jackdrc");
+       Glib::ustring jackdrc_path = Glib::get_home_dir();
+       jackdrc_path += "/.jackdrc";
+
+       ofstream jackdrc (jackdrc_path.c_str());
        if (!jackdrc) {
-               error << _("cannot open JACK rc file to store parameters") << endmsg;
+               error << string_compose (_("cannot open JACK rc file %1 to store parameters"), jackdrc_path) << endmsg;
                return -1;
        }