- current_owner = ConfigVariableBase::System;
-
- if (set_state (*tree.root())) {
- error << string_compose(_("Ardour: system configuration file \"%1\" not loaded successfully."), rcfile) << endmsg;
- return -1;
+ if (statbuf.st_size != 0) {
+ cerr << string_compose (_("loading system configuration file %1"), rcfile) << endl;
+
+ if (!tree.read (rcfile.c_str())) {
+ error << string_compose(_("Ardour: cannot read system configuration file \"%1\""), rcfile) << endmsg;
+ return -1;
+ }
+
+ current_owner = ConfigVariableBase::System;
+
+ if (set_state (*tree.root())) {
+ error << string_compose(_("Ardour: system configuration file \"%1\" not loaded successfully."), rcfile) << endmsg;
+ return -1;
+ }
+ } else {
+ error << _("your system Ardour configuration file is empty. This probably means that there as an error installing Ardour") << endmsg;