Skip to content

Conversation

@jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented Nov 2, 2019

Description

Chrome stores preferences such as window size in data-dir/Default/preferences. This is occasionally updated by a running chrome process, seems like every few seconds. To allow multiple chrome instances to run while still keeping them in temp directories, we can save the preferences file under .dart_tool, and copy it back and forth between the temp/project dir.

Sometime this file will indicate that the browser crashed. This also removes that info to prevent the warning popup on next run.

Fixes #38537

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Nov 2, 2019
@jonahwilliams jonahwilliams merged commit 3422540 into flutter:master Nov 4, 2019
@jonahwilliams jonahwilliams deleted the copy_chrome_profile branch November 4, 2019 17:09
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable having chrome launches persist the window locations between runs

4 participants