1
0
Fork 0

Avoid attempting to use /etc/xdg as base config home, fixes #9053, refs #9045

pull/9058/head
Jordi Boggiano 2020-07-16 14:59:49 +02:00
parent 89d35af83d
commit 7cecc6ad3f
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 0 additions and 3 deletions

View File

@ -74,9 +74,6 @@ class Factory
if (self::useXdg()) { if (self::useXdg()) {
// XDG Base Directory Specifications // XDG Base Directory Specifications
$xdgConfig = getenv('XDG_CONFIG_HOME'); $xdgConfig = getenv('XDG_CONFIG_HOME');
if (!$xdgConfig && is_dir('/etc/xdg')) {
$xdgConfig = '/etc/xdg';
}
if (!$xdgConfig) { if (!$xdgConfig) {
$xdgConfig = $userDir . '/.config'; $xdgConfig = $userDir . '/.config';
} }