more pre-commit testing
[ardour.git] / gtk2_ardour / keyboard.cc
index 3b5b207ce2b8923add6fd83bf9a096352704c46c..ca65a2b3f2ee5f10a2b45770609327a54fd4e0c9 100644 (file)
 
 */
 
+#include "pbd/convert.h"
 #include "pbd/error.h"
 #include "pbd/file_utils.h"
 
 #include "ardour/filesystem_paths.h"
 
 #include "ardour_ui.h"
+#include "public_editor.h"
 #include "keyboard.h"
 #include "opts.h"
 
@@ -59,7 +61,9 @@ ArdourKeyboard::setup_keybindings ()
 
        /* set up the per-user bindings path */
 
-       user_keybindings_path = Glib::build_filename (user_config_directory(), "ardour.bindings");
+       string lowercase_program_name = downcase (PROGRAM_NAME);
+
+       user_keybindings_path = Glib::build_filename (user_config_directory(), lowercase_program_name + ".bindings");
 
        if (Glib::file_test (user_keybindings_path, Glib::FILE_TEST_EXISTS)) {
                std::pair<string,string> newpair;
@@ -153,9 +157,6 @@ ArdourKeyboard::setup_keybindings ()
                                        error << string_compose (_("Default keybindings not found - %1 will be hard to use!"), PROGRAM_NAME) << endmsg;
                                        return;
                                } else {
-                                       warning << string_compose (_("Key bindings file \"%1\" not found. Default bindings used instead"),
-                                                                  keybindings_path)
-                                               << endmsg;
                                        keybindings_path = default_bindings;
                                }