summaryrefslogtreecommitdiff
path: root/gtk2_ardour/main.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-11-27 04:32:25 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-11-27 04:32:25 +0000
commit263520b70bcbd378da86c89c12edf7e1390d5ded (patch)
tree22470fdcc2373ab0899cf859eb3effb432013a8b /gtk2_ardour/main.cc
parent1268bf8b45d2f7c4dad55f055b4f76d4b66c5dd3 (diff)
MESCLUN: new SAE-specific bindings file; parametized binding files; fix handling of master source info loading from XML; change rubberband stretch progress reporting; better handling of top level menubar accelerators on Quartz; fixup handling of user-specified bindings file; no more audition on double-click in region list (does rename instead); various OS X specific fixups; partial fix for memory leakage in import code (fixed by timbyr in trunk but not back-portable to 2.X)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2716 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r--gtk2_ardour/main.cc19
1 files changed, 18 insertions, 1 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc
index 047f692546..6dd957993d 100644
--- a/gtk2_ardour/main.cc
+++ b/gtk2_ardour/main.cc
@@ -280,7 +280,24 @@ int main (int argc, char* argv[])
}
if (!keybindings_path.empty()) {
- ui->set_keybindings_path (keybindings_path);
+ std::string path;
+
+ // XXX timbyr - we need a portable test for "is-absolute" here
+
+ if (keybindings_path[0] != '/' && keybindings_path[0] != '.') {
+ path = find_config_file (keybindings_path);
+ if (path.empty()) {
+ warning << string_compose (_("Key bindings file \"%1\" not found. Default bindings used instead"),
+ keybindings_path)
+ << endmsg;
+ }
+ } else {
+ path = keybindings_path;
+ }
+
+ if (!path.empty()) {
+ ui->set_keybindings_path (path);
+ }
}
ui->run (text_receiver);