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

Allow only a single instance of i2pd-qt per user #102

Open
nonlin-lin-chaos-order-etc-etal opened this issue Oct 17, 2024 · 0 comments
Open

Comments

@nonlin-lin-chaos-order-etc-etal
Copy link
Member

Create & keep $HOME/.var/i2pd_qt/i2pd_qt.pid and $HOME/.var/i2pd_qt/i2pd_qt.tcp-lock-socket and check it on startup, and fail additional processes when this user's pid exists and active: check tcp-lock-socket, and fail with a dialog notice if connection is not refused & is locked by another process by the same user. If another app is active, highlight or select its main window, bring to top of display GUI shell windows stack.

On non-Unix, do something utterly similar.

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