baduhai / Koi

Koi - Theme scheduling for the KDE Plasma Desktop
GNU Lesser General Public License v3.0
263 stars 19 forks source link

[REQUEST] Show main window if the applicaiton is already running #69

Closed Shatur closed 1 year ago

Shatur commented 1 year ago

Is your feature request related to a problem? Please describe.

I run this app on Pinephone and we don't have support for system tray. So If I start the app, I can't open it again.

Describe the solution you'd like

Open main window of the already running app if the applicaiton is already running. This is how it works with Telegram, for example.

MartinVonReichenberg commented 1 year ago

Hello,

As this is intended to be primarily a desktop program, unfortunately there is nothing we could do to make it work in this way - at the moment.

The only way you can do, in the meantime, is to use htop terminal program and then pressing F4, type: koi and then F9 to kill the program manually and reopen it again . . .

Cheers and Good Luck!

Shatur commented 1 year ago

unfortunately there is nothing we could do to make it work in this way

It's possible to show main window if the application is already running. There is a library https://github.com/itay-grudev/SingleApplication. When you detect running second instance you can just show main window.

MartinVonReichenberg commented 1 year ago

unfortunately there is nothing we could do to make it work in this way

It's possible to show main window if the application is already running. There is a library https://github.com/itay-grudev/SingleApplication. When you detect running second instance you can just show main window.

Good then 😏