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

Add support for windows 10 mutiple windows and fix various tab/window related bugs #1249

Merged

Conversation

ehwarren
Copy link
Contributor

Fixes #509
Fixes #1089

There is some changes in there that I'm not sure follow your intended behaviors for the application. Let me know if there's anything you want changed or that i'm simply misunderstanding.

@@ -39,7 +39,6 @@ const argv = parseArgs(process.argv, process.cwd())

if (!app.requestSingleInstanceLock()) {
app.quit()
process.exit(0)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for this? The process needs to exit quickly after sending the second-instance message

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at all documentation for app.requestSingleInstanceLock() everything said to use app.quit(). app.quit() calls beforeunload and unload event handlers before exiting. Doesn't look like any of those handlers are in use right now but they may be added in the future.

I just felt that the process.exit(0) was redundant after calling app.quit().

I couldn't find much documentation on calling process.exit in an electron application other than process.exit is a Node API, so I would assume that it may not do all the right things with regard to an Electron application.

I'll happily add it in if app.quit() isn't enough!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe app.exit(0) is a good solution?

terminus-terminal/src/index.ts Show resolved Hide resolved
@maximussmurf
Copy link

Would also love this. Just started using Terminus in Win10 with WSL2 and would really love to be able to have multiple instances going across multiple Desktops spaces.

@Eugeny Eugeny merged commit 8920cc7 into Eugeny:master Aug 7, 2019
@cyrilchapon
Copy link

Is this available on MacOS ?

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.

Opened tabs at startup behavior Support multiple windows in Windows 10
4 participants