summaryrefslogtreecommitdiff
path: root/gtk2_ardour/keyboard.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-07-10 11:01:21 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-07-10 11:01:21 -0400
commit6cadefcb1982c98f4a2a9c78b88e80e9222ed1dc (patch)
tree75c0db6f9aec88dac82162e782cb4b97ecb11b19 /gtk2_ardour/keyboard.cc
parent0174ce52c67579cf5d7ff39e4cee6e6f4fa7798d (diff)
use lower-case PROGRAM_NAME for user bindings file name
Diffstat (limited to 'gtk2_ardour/keyboard.cc')
-rw-r--r--gtk2_ardour/keyboard.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/keyboard.cc b/gtk2_ardour/keyboard.cc
index d4bf237780..ca65a2b3f2 100644
--- a/gtk2_ardour/keyboard.cc
+++ b/gtk2_ardour/keyboard.cc
@@ -17,6 +17,7 @@
*/
+#include "pbd/convert.h"
#include "pbd/error.h"
#include "pbd/file_utils.h"
@@ -60,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;
@@ -154,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;
}