Aerial icon indicating copy to clipboard operation
Aerial copied to clipboard

Multiple instances can run at the same time

Open EranBoudjnah opened this issue 1 year ago • 3 comments

Describe the bug Launching the app several times would lead to multiple instances being run, observable with their tray icons.

To Reproduce Steps to reproduce the behavior:

  1. Launch the app
  2. Launch it again
  3. Observe two tray icons

Expected behavior Only a single instance exists at any given time. Subsequent launches should recognize it and not start.

Screenshots If applicable, add screenshots to help explain your problem. image

Aerial Version 1.2.0

EranBoudjnah avatar Jun 06 '23 12:06 EranBoudjnah

This is a known issue that I have had. Thanks for opening the issue. I am looking at ways to fix it, I will post any updates here.

OrangeJedi avatar Jun 07 '23 01:06 OrangeJedi

A code example to prevent this from happening, using the electron native requestSingleInstanceLock method.

Also I recommend opening the config menu when users try to open a second instance of the app, if it is already running.

VasilisPat avatar Jun 08 '23 16:06 VasilisPat

I've noticed that mine opens 3 instances at startup. No idea why as I only have one install

ThinkSalat avatar Jun 28 '23 02:06 ThinkSalat