-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix app is quitted right after executing installed app #213
Conversation
local string's buffer is used after it is freed.
|
@@ -21,7 +21,7 @@ index cca3bbb41ae25484c3e87c9aba09a8b07741e2b2..9e2676c79f09a565b5047af20bb82d44 | |||
+ product_dir_name = "BraveSoftware/Brave-Browser"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we doing this at all? It can be set with CrProductDirName
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this also isn't consistent with chrome_paths_linux which has an official_build flag (although I'm not sure why that isn't part of GetChannelSuffixForDataDir)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideally we should use CrProductDir
, but in any case this should use a method override for GetDefaultUserDataDirectory
and not patch
Brave support four different user dir depends on channel. * Brave-Browser for stable release * Brave-Browser-Beta for beta release * Brave-Browser-Dev for dev release * Brave-Development for unofficial build Canary channel isn't supported on linux. Channel suffixes are determined from $CHROME_VERSION_EXTRA, which is passed by the launch wrapper script. For more detail, see src/docs/user_data_dir.md#Linux
I assume the problem is name's buffer after const std::string name is destroyed. Anyway, I'll try to use |
@simonhong that's what we do in muon. I think we would probably add it to the existing plist fixup script |
@bridiver Yep, we can do that easily our own tweak script :) |
In brave/build/config.gni brave_product_dir_name is made and it is passed to tweak_info_plist.py So, we don't need to modify chrome_paths_mac.mm anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
Yay! a lot of code and patch file are deleted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
local string's buffer is used after it is freed.
Close brave/brave-browser#467
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Execute installed app from dmg
Reviewer Checklist: