From 9ad3feaba00e6e0d297ea73e7331be7d1d272455 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 4 Sep 2014 12:31:30 -0400 Subject: [PATCH] rename system and user config files with product-neutral names --- ardour_system_sae.rc | 71 ------------------------------- libs/ardour/rc_configuration.cc | 9 ++-- ardour_system.rc => system_config | 0 wscript | 2 +- 4 files changed, 7 insertions(+), 75 deletions(-) delete mode 100644 ardour_system_sae.rc rename ardour_system.rc => system_config (100%) diff --git a/ardour_system_sae.rc b/ardour_system_sae.rc deleted file mode 100644 index c11a01c9a3..0000000000 --- a/ardour_system_sae.rc +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/libs/ardour/rc_configuration.cc b/libs/ardour/rc_configuration.cc index b0be237563..d1e80e75ef 100644 --- a/libs/ardour/rc_configuration.cc +++ b/libs/ardour/rc_configuration.cc @@ -49,6 +49,9 @@ namespace ARDOUR { float speed_quietning = 0.251189; // -12dB reduction for ffwd or rewind } +static const char* user_config_file_name = "config"; +static const char* system_config_file_name = "system_config"; + RCConfiguration::RCConfiguration () : /* construct variables */ @@ -76,7 +79,7 @@ RCConfiguration::load_state () /* load system configuration first */ - if (find_file (ardour_config_search_path(), "ardour_system.rc", rcfile)) { + if (find_file (ardour_config_search_path(), system_config_file_name, rcfile)) { /* stupid XML Parser hates empty files */ @@ -104,7 +107,7 @@ RCConfiguration::load_state () /* now load configuration file for user */ - if (find_file (ardour_config_search_path(), "ardour.rc", rcfile)) { + if (find_file (ardour_config_search_path(), user_config_file_name, rcfile)) { /* stupid XML parser hates empty files */ @@ -136,7 +139,7 @@ RCConfiguration::load_state () int RCConfiguration::save_state() { - const std::string rcfile = Glib::build_filename (user_config_directory(), "ardour.rc"); + const std::string rcfile = Glib::build_filename (user_config_directory(), user_config_file_name); // this test seems bogus? if (!rcfile.empty()) { diff --git a/ardour_system.rc b/system_config similarity index 100% rename from ardour_system.rc rename to system_config diff --git a/wscript b/wscript index 47157aa198..4f1b56dc54 100644 --- a/wscript +++ b/wscript @@ -875,7 +875,7 @@ def build(bld): for i in children: bld.recurse(i) - bld.install_files (bld.env['CONFDIR'], 'ardour_system.rc') + bld.install_files (bld.env['CONFDIR'], 'system_config') if bld.env['RUN_TESTS']: bld.add_post_fun(test)