I want my application to open only one process, i.e. if the one process is already opened and the user want to open the exe again - it won't open another process.
how can I do it in Qt - linux?
10x!
What you're looking for is QtSingleApplication
.
If you start another instance of your application, the first one will even get notified about it (you can pass whatever data structure you want).
I used it to bring the existing application to the front whenever another instance is started.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With