Skip to content

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

Description

@eproper

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions