Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create only single instance of the application #13

Open
apaku opened this issue Aug 30, 2011 · 0 comments
Open

create only single instance of the application #13

apaku opened this issue Aug 30, 2011 · 0 comments
Assignees
Milestone

Comments

@apaku
Copy link
Owner

apaku commented Aug 30, 2011

Since the app reads/writes from shared files there should always be only a single instance. A small example which is much simpler than the Qt solution QtSingleApplication is in http://www.qtcentre.org/wiki/index.php?title=SingleApplication.

Basic idea is to use a QSharedMemory instance to see wether it exists and then exit directly since another instance is running. Extra feature would be showing the mainwindow by notifying the other instance either via writing to the memory or using the local server/socket as in the example.

@ghost ghost assigned apaku Aug 30, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant