summaryrefslogtreecommitdiff
path: root/gtk2_ardour/keyboard.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-02-15 13:48:50 +0000
committerCarl Hetherington <carl@carlh.net>2011-02-15 13:48:50 +0000
commit4bd528798073c8e168e9f17df6246255f653e079 (patch)
treec6a65f8372cc22dacabb090bf8008832c348c95b /gtk2_ardour/keyboard.cc
parent32ab86230e3f22365b8f02673d5b3b502428a0a8 (diff)
Save user key bindings to the right place. Fixes #3773.
git-svn-id: svn://localhost/ardour2/branches/3.0@8854 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/keyboard.cc')
-rw-r--r--gtk2_ardour/keyboard.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/keyboard.cc b/gtk2_ardour/keyboard.cc
index 983d5e2ddf..41e6a08814 100644
--- a/gtk2_ardour/keyboard.cc
+++ b/gtk2_ardour/keyboard.cc
@@ -59,11 +59,10 @@ ArdourKeyboard::setup_keybindings ()
/* set up the per-user bindings path */
- strs.push_back (Glib::get_home_dir());
- strs.push_back (".ardour3");
- strs.push_back ("ardour.bindings");
+ sys::path p (user_config_directory ());
+ p /= "ardour.bindings";
- user_keybindings_path = Glib::build_filename (strs);
+ user_keybindings_path = p.to_string ();
if (Glib::file_test (user_keybindings_path, Glib::FILE_TEST_EXISTS)) {
std::pair<string,string> newpair;