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

Show the already running instance instead of launching a new instance #525

Open
someonemax opened this issue Mar 29, 2024 · 1 comment
Open
Labels
major-work Amount of work required for this task. new feature Description of a novel feature.

Comments

@someonemax
Copy link

someonemax commented Mar 29, 2024

When JS Gremlin is already running, if you launch the application again, it will open another instance.

I think the better and more standard behavior (which most applications use), is to show the already running instance, rather than to launch another instance of the application (running in parallel to the first one).

Apart from the fact that the current behavior is not useful, the second instance won't even run properly and throws an error, presumably because it can't get control of the vJoy device or some files.

So I suggest bringing the behavior in line with what most applications do, which is for the second instance to check whether another instance of the application is already running, on startup, and if so, signal the already running instance to open if minimized to system tray, and for the second instance to exit.

This will not only prevent inadvertently starting more instances of the application when it's already running, but also give the users an easy way to maximize the application that has been minimized to system tray, by attempting to launch a new instance (e.g. through start menu using keyboard), rather than moving the mouse all the way to the system tray area to click on the tray icon.

@WhiteMagic
Copy link
Owner

In general I agree, though the unknown aspects of this are how this can be achieved with Gremlin being "compiled" with pyinstaller and wrapper in some windows launch aspects.

@WhiteMagic WhiteMagic added new feature Description of a novel feature. major-work Amount of work required for this task. labels Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major-work Amount of work required for this task. new feature Description of a novel feature.
Projects
None yet
Development

No branches or pull requests

2 participants