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

Possible to run two copies of WR and get into a confusing state. #186

Closed
aza547 opened this issue Oct 1, 2022 · 3 comments
Closed

Possible to run two copies of WR and get into a confusing state. #186

aza547 opened this issue Oct 1, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@aza547
Copy link
Owner

aza547 commented Oct 1, 2022

Title.

image

Two ideas:

  • Enforce only one copy of the app runs at once. That surely is straight forward.
  • Include some random part of the log file name so that it's clear which instance of the app is which.
@tdaugaard
Copy link
Contributor

Electron has an API for that https://github.com/electron/electron/blob/v0.36.10/docs/api/app.md#appmakesingleinstancecallback

@aza547 aza547 added the bug Something isn't working label Oct 1, 2022
@tdaugaard
Copy link
Contributor

Apparently, the new way is https://github.com/electron/electron/blob/main/docs/api/app.md#event-second-instance but they still have an API for it, it just changed to be event based :D

@aza547
Copy link
Owner Author

aza547 commented Oct 2, 2022

Fixed on main.

@aza547 aza547 closed this as completed Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants