Fixup for /etc/dcd.conf support
1) look for /etc/dcd.conf if $HOME is defined but there is no dcd.conf there 2) include missing filename in path
This commit is contained in:
parent
e1fbb3e655
commit
39fdc9b332
|
|
@ -250,8 +250,8 @@ string getConfigurationLocation()
|
||||||
configDir = environment.get("HOME", null);
|
configDir = environment.get("HOME", null);
|
||||||
if (configDir !is null)
|
if (configDir !is null)
|
||||||
configDir = buildPath(configDir, ".config", "dcd", CONFIG_FILE_NAME);
|
configDir = buildPath(configDir, ".config", "dcd", CONFIG_FILE_NAME);
|
||||||
else
|
if (!exists(configDir))
|
||||||
configDir = "/etc/";
|
configDir = buildPath("/etc/", CONFIG_FILE_NAME);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue