macdems / yet-another-spotify-tray

Tray icon for Spotify Linux client application
MIT License
22 stars 6 forks source link

Prevent multiple instances using QtSingleApplication rather than QSharedMutex #2

Closed vnord closed 2 years ago

vnord commented 2 years ago

This does add https://github.com/itay-grudev/SingleApplication as a submodule dependency. I'm not sure if this is desirable, as I'm not used to working with C++ projects.

This was my workaround to resolve https://github.com/macdems/yet-another-spotify-tray/issues/1

macdems commented 2 years ago

I think that using QSingleApplication library is an overkill. I have resolved #1 using a simple solution from https://stackoverflow.com/questions/42549904/qsharedmemory-is-not-getting-deleted-on-application-crash

vnord commented 2 years ago

Great, thanks a lot!