Skip to content
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

Launch-Chrome-Plex.ps1 tries and fails to cleanup profiles older than a day that are still in use. #7

Open
eproper opened this issue Aug 19, 2022 · 0 comments

Comments

@eproper
Copy link
Collaborator

eproper commented Aug 19, 2022

Assuming a profile (P1) was created on day 1 and then left open for 24 hours (and kept open), if an additional profile (P2) is created by the execute of the script on day 2, the script will error as it tries to cleanup P1. The script does not seem to distinguish between >1 day old profiles that are still in use by active chrome windows and those that are not,

To reproduce:

  1. Go through the process of creating a "TempPlexProfile*" chrome profile by running the script (verify a profile is created in local appdata). Make sure that the newly open chrome windows remains open.
  2. Modify the script to set cleanupDate to the current date.
  3. Run the script and view the output.
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

No branches or pull requests

1 participant