You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nw.Window.get().enterKioskMode() could set proper kiosk settings for a alright kiosk mode.
Actual behavior
Goes into full screen only.
How to reproduce
In a nw app run nw.Window.get().enterKioskMode() move your mouse to the bottom, the task manager shows.
Possible Solution
I've attached a patch that may be a solution. I'm currently still working on trying to get a system set up that can build nw.js properly. An important thing is to set the NSApplicationPresentationOptions.
In the past it was possible to set this through a node native call however after 0.34.0, this is not possible for reasons I don't understand. I think it must be done directly in nw, not through node.
Do you have proposals on how the API should be improved for this?
I may be a bit confused. Do you mean the patch nwjs.kiosk.patch.txt I added in the first post? I just thought Window.enterKioskMode() could set the presentation options, set a high window level and set activeIgnoringOtherApps.
NWJS Version : 0.42.2
Operating System : OSX
Expected behavior
nw.Window.get().enterKioskMode() could set proper kiosk settings for a alright kiosk mode.
Actual behavior
Goes into full screen only.
How to reproduce
In a nw app run nw.Window.get().enterKioskMode() move your mouse to the bottom, the task manager shows.
Possible Solution
I've attached a patch that may be a solution. I'm currently still working on trying to get a system set up that can build nw.js properly. An important thing is to set the NSApplicationPresentationOptions.
nwjs.kiosk.patch.txt
A very important part is:
In the past it was possible to set this through a node native call however after 0.34.0, this is not possible for reasons I don't understand. I think it must be done directly in nw, not through node.
nw.js group discussion: https://groups.google.com/forum/#!topic/nwjs-general/QfOQb3M5xh0
Electron's implementation
This link is also electron's version of setting kiosk mode (SetKiosk()). You can see they set the presentation options.
https://github.com/electron/electron/blob/0fe6767d6b8992d0ac3036d553ead1e529b854f3/shell/browser/native_window_mac.mm
Possible related issues
#5459
The text was updated successfully, but these errors were encountered: