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)
|
if (configDir is null)
|
||||||
{
|
{
|
||||||
configDir = environment.get("HOME", null);
|
configDir = environment.get("HOME", null);
|
||||||
if (configDir is null)
|
if (configDir !is null)
|
||||||
throw new Exception("Both $XDG_CONFIG_HOME and $HOME are unset");
|
|
||||||
configDir = buildPath(configDir, ".config", "dcd", CONFIG_FILE_NAME);
|
configDir = buildPath(configDir, ".config", "dcd", CONFIG_FILE_NAME);
|
||||||
|
else
|
||||||
|
configDir = "/etc/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue