WindowTop / WindowTop-App

Set window on top, make it dark, transparent and more
Other
1.16k stars 69 forks source link

Getting "App already running error" when WindowTop running in another Windows account #129

Closed gileli121 closed 2 years ago

gileli121 commented 3 years ago

Got reports from user that for some reason he can't start WindowTop

image

image

After investigation, the issue can be reproduced in the following scenario:

  1. Login to the first Windows account and run WindowTop there
  2. Exit the account without logout (lock the account) image
  3. Login the the second Windows account and try to run WindowTop also there

In this case, WindowTop will not run and claims that it is already running. The reson is that it detected another WindowTop process and it is true. But the second process is not belong to the current account so it should ignore it and still allow to start.

gileli121 commented 3 years ago

For now here is build with the hotfix: WindowTop Build 27-08-21_1.zip This is only portable version. Installer will be released later

gileli121 commented 3 years ago

According to the user, the issue not fixed yet.

Sent him this build: WindowTop Build 29-08-21_1.zip

This build contains some logs that I added. We will check what goes wrong by looking on WindowTopLog.log file

gileli121 commented 3 years ago

According to the user, the last build also did not fixed it. So the reason of this bug is unknown. I developed a workaround -

  1. Go to settings.json and remove this file. If the program is installed, you should find it under: %appdata%\WindowTop If you use it as a portable version, you should find it inside the portable folder near the WindowTop.exe file.

  2. Create settings.json in that location. The content should be:

    {
    "General": {
        "AllowMultiInstances": true
    }
    }

    image

  3. Run WindowTop again.

gileli121 commented 3 years ago

The workaround is now released as part of version v5.4.15

gileli121 commented 2 years ago

Issue reopened. I was able to reproduce the issue on Windows 10 VM And it was also reported again

gileli121 commented 2 years ago

This time I simplified the logic that detects that the app is already running.

Here is build for test:

WindowTop Build 20.11.21-1.zip