Skip to content
This repository was archived by the owner on Jan 4, 2019. It is now read-only.

Commit 87b05d3

Browse files
authored
Merge pull request #107 from posix4e/fix-electron-config-path
Make sure we always store prefs in ~/.config/brave not ~/.config
2 parents 6e4b0bd + 78a1cad commit 87b05d3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

brave/common/brave_paths.cc

+1-4
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ namespace brave {
2525
*result = base::nix::GetXDGDirectory(env.get(),
2626
base::nix::kXdgConfigHomeEnvVar,
2727
base::nix::kDotConfigDir);
28-
if (result->BaseName().value() != base::nix::kDotConfigDir) {
29-
return false;
30-
}
3128
return true;
3229
#else
3330
return PathService::Get(brightray::DIR_APP_DATA, result);
@@ -42,7 +39,7 @@ namespace brave {
4239
if (!GetDefaultAppDataDirectory(result)) {
4340
return false;
4441
}
45-
result->Append(FILE_PATH_LITERAL("brave"));
42+
*result = result->Append(FILE_PATH_LITERAL("brave"));
4643
return true;
4744
#endif
4845
}

0 commit comments

Comments
 (0)