Look for dcd.conf in /etc/ as a backup. #203

This commit is contained in:
Hackerpilot 2015-03-25 22:35:47 -07:00
parent c5bb663cad
commit e1fbb3e655
1 changed files with 4 additions and 3 deletions

View File

@ -248,9 +248,10 @@ string getConfigurationLocation()
if (configDir is null)
{
configDir = environment.get("HOME", null);
if (configDir is null)
throw new Exception("Both $XDG_CONFIG_HOME and $HOME are unset");
configDir = buildPath(configDir, ".config", "dcd", CONFIG_FILE_NAME);
if (configDir !is null)
configDir = buildPath(configDir, ".config", "dcd", CONFIG_FILE_NAME);
else
configDir = "/etc/";
}
else
{