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

feat: check if the running process is of the same user #680

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sudoAlphaX
Copy link
Contributor

@sudoAlphaX sudoAlphaX commented Feb 21, 2025

When running SafeEyes in multi-user environments (multiple users running
SafeEyes in the same machine), it refuses to start more than one
instance of SafeEyes because it is already running accoding to ps.

This patch adds a check to the running SafeEyes pid such that the
_running() function returns True only if it is running as the same user.

Please check if the Windows platform works as expected.

When running SafeEyes in multi-user environments (multiple users running
SafeEyes in the same machine), it refuses to start more than two
instances of SafeEyes because it is already running accoding to ps.

This patch adds a check to the running SafeEyes pid such that the
_running() function returns True only if it is running as the same user.
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

Successfully merging this pull request may close these issues.

1 participant