CountMurphy / QTalarm

A handy alarm clock Program written in QT.
GNU General Public License v3.0
35 stars 9 forks source link

Opening a second instance shouldn't be possible #17

Closed Kommynct closed 1 year ago

Kommynct commented 2 years ago

The proper behavior, since it has a tray icon, would be for opening another instance not to duplicate the process, but to bring the window to the front.

CountMurphy commented 1 year ago

Plan to address in coming release.

Kommynct commented 1 year ago

the patch notes seem to state this is resolved but after installing qtalarm again from the aur I've noticed no change.

CountMurphy commented 1 year ago

The last release patched https://github.com/CountMurphy/QTalarm/issues/19 (as it was a really quick fix). I have yet to write a fix for this one. I was hoping QT had a native way to enforce a single instance, but couldn't find one. I plan on coding up something to address this next.

CountMurphy commented 1 year ago

fixed in d8e04068e288110e9be823460c56fd2256f3caef. Sorry this took so long. QT has no native way to list running processes. Had to create a local socket and communicate over that