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

Set new session on created display #80

Open
dp-alvarez opened this issue Aug 2, 2022 · 0 comments
Open

Set new session on created display #80

dp-alvarez opened this issue Aug 2, 2022 · 0 comments

Comments

@dp-alvarez
Copy link

The way PyVirtualDisplay works now, the virtual X server is created on the same process group as the Python script.

One of the effects of this is that when sending, for example, SIGINT to the Python script the virtual X server also receives it and exits before the script can do any cleanup.

Adding start_new_session=True to the subprocess.Popen in AbstractDisplay would easily solve this and possibly other subtle edge cases, as it makes a lot of sense for the X server to be on it's own session.

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