Look for dcd.conf in /etc/ as a backup. #203
This commit is contained in:
parent
c5bb663cad
commit
e1fbb3e655
|
|
@ -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");
|
||||
if (configDir !is null)
|
||||
configDir = buildPath(configDir, ".config", "dcd", CONFIG_FILE_NAME);
|
||||
else
|
||||
configDir = "/etc/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue