Skip to content

Conversation

@JoelEinbinder
Copy link
Contributor

I noticed I had a lot of old .dev-profile folders from when I used Ctrl+C to end Puppeteer. I thought about cleaning up on SIGINT, but that would break if users have their own SIGINT handler. So maybe putting the profiles into a temp directory will at least stop them from piling up forever.

Copy link
Contributor

@aslushnikov aslushnikov left a comment

Choose a reason for hiding this comment

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

The SIGINT is handled in #434.

but that would break if users have their own SIGINT handler.

Can you provide an example?

lib/Launcher.js Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

does this work on windows? For some reason, chrome launcher has a bunch of heuristics to infer tmp directory

Copy link
Contributor

Choose a reason for hiding this comment

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

It also turned out there's a fs.mkdtemp - let's use it in favor of current folder name generation.

@aslushnikov aslushnikov merged commit 11e3343 into puppeteer:master Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants