kruizer23 / hotframefx

HotFrameFx is a system tray utility for configuring hot corner and edge actions.
https://kruizer23.github.io/hotframefx/
GNU General Public License v3.0
17 stars 1 forks source link

Restrict the launching of multiple instances of the application #15

Open Bryan7Wilson opened 11 months ago

Bryan7Wilson commented 11 months ago

I noticed an unpleasant thing: if the application is already running, then when reopen opening the application through the shortcut, and not through the tray, a new instance of the application opens, and not the window of the previously launched instance. This leads to problem, because one instance application a given action for a hot corner, and the second immediately cancels it. In my opinion, this is a problem, and it would be more logical to track the process and restrict the launching of multiple instances, so that when it is relaunched through a shortcut, the window of the already running instance is brought up. Because all of this leads to the aforementioned problem and memory leakage in general.

kruizer23 commented 11 months ago

I can see that not being optimal. Thank you for flagging this. Shouldn't be hard to solve.