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

Focus Pext when launching second instance on Windows #50

Open
TheLastProject opened this issue Dec 17, 2017 · 0 comments
Open

Focus Pext when launching second instance on Windows #50

TheLastProject opened this issue Dec 17, 2017 · 0 comments

Comments

@TheLastProject
Copy link
Member

This already works on Linux and macOS, but Windows currently doesn't support the way this is done. Will need fixing at some point.

The problem is specifically around

Pext/pext/__main__.py

Lines 2636 to 2640 in a1b5a01

if platform.system() == 'Windows':
print("Pext is already running and foregrounding the running instance is currently not supported "
"on Windows. Doing nothing...")
else:
os.kill(int(open(pidfile, 'r').read()), signal.SIGUSR1)
and

Pext/pext/__main__.py

Lines 3034 to 3035 in a1b5a01

if not platform.system() == 'Windows':
signal.signal(signal.SIGUSR1, signal_handler.handle)
, because Windows doesn't support signals like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant