-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Can't quit on MacOS - need to Force Quit #7242
Comments
This looks like the duplicate of #7226, which I have fixed. Could you try the latest nightly build? http://dl.nwjs.io/live-build/nw42/11-26-2019/ff6fb8b1c/v0.42.6/ |
I just tried running my example with Also, the red close buttons in the window toolbar don't respond. Same with It asks to hold Would love to get this issue fixed :) Have been experimenting with Electron for a while, but found out the architecture of NW.js is so much more convenient for my usecase! Especially the easy access to iframe contents, very nice. |
You can try —disable-features=nw2 in command line argument
…On Tue, Nov 26, 2019 at 9:30 PM Jip-Hop ***@***.***> wrote:
I just tried running my example with /path/to/nwjs-sdk-v0.42.6-osx-x64/nwjs.app/Contents/MacOS/nwjs
. and /path/to/nwjs-v0.42.6-osx-x64/nwjs.app/Contents/MacOS/nwjs . but
the behaviour is the same.
Also, the red close buttons in the window toolbar don't respond. Same with
nwjs-sdk-v0.42.5-osx-x64.
It asks to hold CMD+Q and when I do, closes all windows but doesn't quit
the app. Seems like the windows are still there, just hidden. Have to force
quit, or terminate from the command line with CTRL+C. Quitting with CTRL+C
in the terminal also works with the latest stable release, but doesn't work
when starting with npm start.
Would love to get this issue fixed :) Have been experimenting with
Electron for a while, but found out the architecture of NW.js is so much
more convenient for my usecase! Especially the easy access to iframe
contents, very nice.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7242?email_source=notifications&email_token=AABIMGLVRXTKDG3NZJVBMY3QVUQHFA5CNFSM4JRXA3A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFF76QY#issuecomment-558628675>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABIMGOJCI75FM4Q25JOJXTQVUQHFANCNFSM4JRXA3AQ>
.
|
Can I put it in "chromium-args" in the package json? For example I'd like my app to always use --disable-raf-throttling, so I put that one in "chromium-args". Is that the place to put the arguments? Also for --disable-features=nw2? |
Yes you can. |
With --disable-features=nw2 the app will close normally. But nw1 will be removed in the near future right? |
Yes and that's a workaround. I'll look to reproduce this issue and fix it. |
Thank you :)
… Op 27 nov. 2019 om 03:00 heeft Roger Wang (WenRui) ***@***.***> het volgende geschreven:
Yes and that's a workaround. I'll look to reproduce this issue and fix it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I got the same problem on Mac with the 0.42.5 |
The latest nightly now works for me -- it quits gracefully via cmd-q or the menu item: https://dl.nwjs.io/live-build/nw42/11-29-2019/03076b19a/v0.42.6/ |
Great :) seems to be fixed in 0.43.0-beta1sdk. On 0.42.6 it still didn't work for me. |
With 0.43.0 it gracefully quits without the --disable-features=nw2 workaround, but only after double tapping or holding CMD+Q. It also still shows "Hold Command+Q to Quit". Would be great if we can get rid of that too :) |
Yeah. It will be removed in the next nightly build.
…On Thu, Dec 12, 2019, 5:50 PM Jip-Hop ***@***.***> wrote:
With 0.43.0 it gracefully quits without the --disable-features=nw2
workaround, but only after double tapping or holding CMD+Q. It also still
shows "Hold Command+Q to Quit". Would be great if we can get rid of that
too :)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#7242?email_source=notifications&email_token=AABIMGNXTO45SNUXH7TXN5LQYICPFA5CNFSM4JRXA3A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGWC4IQ#issuecomment-564932130>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABIMGI7DZ4XR7MSSEZ2OATQYICPFANCNFSM4JRXA3AQ>
.
|
NWJS Version : 0.42.5,
Operating System : MacOS 10.14.6
Expected behavior
CMD+Q
shortcut, all app windows should close and the app should quit gracefully.Quit nwjs
Actual behavior
CMD+Q
to quit. If I do, all windows are closed but app doesn't quit. Trying to quit from the menubar doesn't work either. HittingCTRL+C
in the terminal window doesn't quit the app. Only way to quit it is to force quit withCMD+ALT+ESC
.Quit nwjs
in the menubar, it will only close one window. Clicking it again doesn't do anything after this. HittingCMD+Q
will close the left over open window, but the app doesn't quit either. Only way to quit it is to force quit withCMD+ALT+ESC
.How to reproduce
package.json
main.js
index.html
Run example with
npm start
or/path/to/nwjs.app/Contents/MacOS/nwjs .
from the example folder. Behaviour is the same.The text was updated successfully, but these errors were encountered: