mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
only create user configuration directory if no explicit version was given
This commit is contained in:
parent
c9d10158f6
commit
d563b1173b
1 changed files with 13 additions and 8 deletions
|
|
@ -98,6 +98,10 @@ user_config_directory (int version)
|
|||
|
||||
p = Glib::build_filename (p, user_config_directory_name (version));
|
||||
|
||||
if (version < 0) {
|
||||
/* Only create the user config dir if the version was negative,
|
||||
meaning "for the current version.
|
||||
*/
|
||||
if (!Glib::file_test (p, Glib::FILE_TEST_EXISTS)) {
|
||||
if (g_mkdir_with_parents (p.c_str(), 0755)) {
|
||||
error << string_compose (_("Cannot create Configuration directory %1 - cannot run"),
|
||||
|
|
@ -109,6 +113,7 @@ user_config_directory (int version)
|
|||
p) << endmsg;
|
||||
exit (1);
|
||||
}
|
||||
}
|
||||
|
||||
return p;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue