Make sure we have a user config directory before trying
to create a .a3 file in it. Fixes #4239. git-svn-id: svn://localhost/ardour2/branches/3.0@9944 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
eb43f2d0eb
commit
332a4ebb59
@ -111,6 +111,17 @@ Ardour will play NO role in monitoring"))
|
||||
setup_alpha_page ();
|
||||
|
||||
if (new_user) {
|
||||
|
||||
/* Create the config directory so that we have somewhere to put the
|
||||
been_here_before file.
|
||||
*/
|
||||
try {
|
||||
sys::create_directories (user_config_directory ());
|
||||
}
|
||||
catch (const sys::filesystem_error& ex) {
|
||||
error << "Could not create user configuration directory" << endmsg;
|
||||
}
|
||||
|
||||
/* "touch" the file */
|
||||
ofstream fout (been_here_before.to_string().c_str());
|
||||
setup_new_user_page ();
|
||||
|
Loading…
Reference in New Issue
Block a user