Coder Social home page Coder Social logo

Comments (6)

kevinsawicki avatar kevinsawicki commented on May 3, 2024

Yeah, I thought this worked but appears to have regressed, the current code is here

from electron.

zcbenz avatar zcbenz commented on May 3, 2024

Currently the atom command uses open command to open the Atom in a new process and then quit immediately.

But application opened by open would be detached from terminal and its output would not be printed, if we want to make atom behave like other terminal editors correctly, we must execute Atom's binary directly instead of using the open command, so the atom command could keep running until the Atom application quits, just as if the --wait is always passed, @kevinsawicki is this change acceptable?

from electron.

aroben avatar aroben commented on May 3, 2024

You can also use the -w flag to open to make it wait for the process to
quit.

On Tue, Aug 6, 2013 at 9:45 PM, Cheng Zhao [email protected] wrote:

Currently the atom command uses open command to open the Atom in a new
process and then quit immediately.

But application opened by open would be detached from terminal and its
output would not be printed, if we want to make atom behave like other
editors correctly, we must execute Atom's binary directly instead of using
the open command, so the atom command could keep running until the Atom
application quits, just as if the --wait is always passed, @kevinsawickihttps://github.com/kevinsawickiis this change acceptable?


Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-22224685
.

from electron.

zcbenz avatar zcbenz commented on May 3, 2024

You can also use the -w flag to open to make it wait for the process to quit.

But the output of Atom would still not be printed.

from electron.

kevinsawicki avatar kevinsawicki commented on May 3, 2024

I feel like this issue is more of an atom thing than an atom shell thing.

atom.sh could just change to parse command line flags and handle things like -h, etc. before it launches the main app.

I think we just need to pull some code out of main.coffee and do some of it up front before the app is opened.

from electron.

zcbenz avatar zcbenz commented on May 3, 2024

Yeah parsing command line in atom.sh should be enough to fix this.

I duplicated this issue in atom: atom/atom#685, now I'm going to close this issue.

from electron.

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.