Skip to content
Snippets Groups Projects
Commit fcb0f59f authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #16808: daemon: Fix configuration file path when XDG_CONFIG_HOME is set

parent cc29c232
No related branches found
No related tags found
No related merge requests found
......@@ -1829,10 +1829,9 @@ std::string ManagerImpl::createConfigFile() const
std::string configdir = std::string(HOMEDIR) + DIR_SEPARATOR_STR +
".config" + DIR_SEPARATOR_STR + PACKAGE;
std::string xdg_env(XDG_CONFIG_HOME);
if (not xdg_env.empty()) {
configdir = xdg_env;
}
const std::string xdg_env(XDG_CONFIG_HOME);
if (not xdg_env.empty())
configdir = xdg_env + DIR_SEPARATOR_STR + PACKAGE;
if (mkdir(configdir.data(), 0700) != 0) {
// If directory creation failed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment