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

Commit

Permalink
Fix userData dir when switch is specified
Browse files Browse the repository at this point in the history
Fix brave/browser-laptop#6451

There could be an issue with the app data dir in general, as tracked here:
#140

Auditors: @bridiver
  • Loading branch information
bbondy committed Dec 30, 2016
1 parent b3f88a6 commit c513d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atom/app/atom_main_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ base::FilePath InitializeUserDataDir() {
command_line->GetSwitchValuePath(switches::kUserDataDir);
if (!user_data_dir.empty() && !user_data_dir.IsAbsolute()) {
base::FilePath app_data_dir;
PathService::Get(brightray::DIR_APP_DATA, &app_data_dir);
brave::GetDefaultAppDataDirectory(&app_data_dir);
user_data_dir = app_data_dir.Append(user_data_dir);
}
}
Expand Down

1 comment on commit c513d13

@bridiver
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.