summaryrefslogtreecommitdiff
path: root/gtk2_ardour/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r--gtk2_ardour/main.cc15
1 files changed, 11 insertions, 4 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc
index 14330e2009..028c38ac74 100644
--- a/gtk2_ardour/main.cc
+++ b/gtk2_ardour/main.cc
@@ -239,11 +239,18 @@ string
which_ui_rcfile ()
{
string rcfile;
+ char* env;
+
+ if ((env = getenv ("ARDOUR2_UI_RC")) != 0 && strlen (env)) {
+ rcfile = env;
+ } else {
+ rcfile = "ardour2_ui.rc";
+ }
+
+ rcfile = find_config_file (rcfile);
- rcfile = find_config_file ("ardour2_ui.rc");
-
- if (rcfile.length() == 0) {
- warning << _("Without a UI style file, ardour will look strange.\n Please set ARDOUR_UI_RC to point to a valid UI style file") << endmsg;
+ if (rcfile.empty()) {
+ warning << _("Without a UI style file, ardour will look strange.\n Please set ARDOUR2_UI_RC to point to a valid UI style file") << endmsg;
}
return rcfile;