Comments (6)
Describe the bug When
exitProcessOnClose
is set to true, closing the app will result in +5 sec freeze before the app closes on WindowsTo Reproduce
- set
exitProcessOnClose
to true inneutralino.config.json
.- Open the app.
- Try closing it.
Expected behavior The app should close immediately. However, we have a +5 sec delay before closing. Which is not what we want.
Specifications
- OS: Windows 11
- Neutralinojs version : 4.14.1
- Neutralinojs client library version: 3.12.0
- Neutralinojs CLI version: 10.1.0
Note: you can enter the
neu version
command to find these detailsAdditional context The issue does not occur when using this workaround in main.js instead of relying on existProcessOnClose.
Neutralino.init(); Neutralino.events.on("windowClose", () => { Neutralino.app.exit(); });how to use the workaround please?
Add the code shown above where you use the Neutralino object in your project. Usually it's in main.js
from neutralinojs.
Same here, tested in 4.15.0 and same results.
The workaround seems to be working fine.
from neutralinojs.
I had created a duplicate ticket of this on the wrong (?) project: neutralino.jsj #102
The workaround that is described above is what was in my app by default after neu create
-ing it. This resulted in the app not closing at all on Windows.
Removing it now exhibits the behavior described by the OP. However, we have seen the time ranging from 2 seconds to more than 10 seconds on some Windows installations.
from neutralinojs.
Something similar happens when creating a react application as outlined under the "Using any frontend library" section of the docs
https://neutralino.js.org/docs/getting-started/using-frontend-libraries
In my case, when I press the X button to exit, the application hangs for 10 seconds before closing.
I have not found how to use the workaround shown above since there is no main.js file
from neutralinojs.
same, neutralino v4.14.1, client v3.12.0, workaround working fine but not the exitProcessOnClose
from neutralinojs.
Describe the bug When
exitProcessOnClose
is set to true, closing the app will result in +5 sec freeze before the app closes on WindowsTo Reproduce
- set
exitProcessOnClose
to true inneutralino.config.json
.- Open the app.
- Try closing it.
Expected behavior The app should close immediately. However, we have a +5 sec delay before closing. Which is not what we want.
Specifications
- OS: Windows 11
- Neutralinojs version : 4.14.1
- Neutralinojs client library version: 3.12.0
- Neutralinojs CLI version: 10.1.0
Note: you can enter the
neu version
command to find these detailsAdditional context The issue does not occur when using this workaround in main.js instead of relying on existProcessOnClose.
Neutralino.init(); Neutralino.events.on("windowClose", () => { Neutralino.app.exit(); });
how to use the workaround please?
from neutralinojs.
Related Issues (20)
- Windows Crash if User Directory has Special Character HOT 2
- Bug in upcoming Extension binding? HOT 4
- issue with neu create
- NL_PATH doesn't get translation of a Windows system folder HOT 2
- borderless windows on mac have multiple issues HOT 2
- Compatibility with SvelteKit HOT 1
- Implement `window.transparent` configuration option for Windows HOT 10
- Remove unused code from the webview.h file
- WebSocket Server with binary mode support HOT 1
- ReactJS Hot-Reload refreshes the whole page HOT 2
- `neu run` does not remove its tray icon upon exiting HOT 5
- `setDraggableRegion` doesn't work sometimes HOT 3
- Neutralino.storage don't work when the app is launched in a directory path with special characters on Windows
- Execute a shell command and emit events triggered by stdOut HOT 3
- `Neutralino.storage` functions – promises always pending HOT 1
- neu: ERRR Unable to dispatch event to the app
- `Open with → Choose another app` function not working HOT 5
- Faster startup HOT 8
- Deprecated Warning HOT 3
- Can't close app immediately on windows11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neutralinojs.