Giter Club home page Giter Club logo

Comments (8)

disquisitioner avatar disquisitioner commented on July 26, 2024

Happens on Windows too, BTW.

from positron.

mykmelez avatar mykmelez commented on July 26, 2024

@jryans I think this is a regression from integrating DevTools.

from positron.

jryans avatar jryans commented on July 26, 2024

Hmm, what about the call to Services.startup.enterLastWindowClosingSurvivalArea();? Wouldn't that trigger this behavior on all OSes @mykmelez?

from positron.

mykmelez avatar mykmelez commented on July 26, 2024

Hmm, what about the call to Services.startup.enterLastWindowClosingSurvivalArea();? Wouldn't that trigger this behavior on all OSes @mykmelez?

That prevents Gecko from quitting the app, but the app itself should still do it on window-all-closed:

https://github.com/mozilla/positron/blob/master/positron/test/hello-world/main.js#L11-L18

from positron.

mykmelez avatar mykmelez commented on July 26, 2024

This comment could be relevant:

// TODO: figure out if window-all-closed respects devtools windows,
// in which case the conditional that determines whether or not to emit
// that event will need to change.

from positron.

jryans avatar jryans commented on July 26, 2024

I'll take a look at this.

from positron.

jryans avatar jryans commented on July 26, 2024

Hmm, I commented out the OS check in main.js to try on OS X. In that case, the app does quit after closing the app window.

I'll try setting up my VM for builds on other OSes.

from positron.

jryans avatar jryans commented on July 26, 2024

Hmm, looking at the timing of events, on Mac we get domwindowclosed for DevTools first, then the app window. On Linux, the app window event comes first, quit is called, then DevTools window closes after. So, it seems the quit call is getting aborted somehow. I'll look more tomorrow.

from positron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.