Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Add a config setting for quitting the app when the last window is closed on Mac OS clicking the x icon directly #7835

Closed

Description

@wanghaisheng

mac 10.10.4
atom 1.0.2 download from release atom-mac.zip and install.
1.from Dock I click the icon
when I first open atom it comes to a untitled txt file,then choose a local folder and open it ,then close editor and reopen,it come to a untitled again.

add project folder does not work either
2. from the terminal, try to use atom . from a local folder, and close the editor manually by clicking the "x" icon ,also i try to open two local folders and shutdown one of them and reopen editor again, it won`t work either

Activity

  1. maxbrunsfeld commented on Jul 10, 2015

    @maxbrunsfeld
    Contributor

    Does this happen even if you open atom with the folder using atom the-folder from the terminal? What about if you open a new window after opening the first window.

  2. wanghaisheng commented on Jul 11, 2015

    @wanghaisheng
    Author

    @maxbrunsfeld @mnquintana update the info

  3. maxbrunsfeld commented on Jul 11, 2015

    @maxbrunsfeld
    Contributor

    So you said that when you close Atom, you close the window by clicking the x button. What if instead, you quit the app with command-q?

  4. wanghaisheng commented on Jul 11, 2015

    @wanghaisheng
    Author

    @maxbrunsfeld let me try .instead of using 1.0.x atom , I am always doing things like that and it is ok
    command-q works.

  5. maxbrunsfeld commented on Jul 11, 2015

    @maxbrunsfeld
    Contributor

    Ok, I think that what you are seeing is the expected behavior. On Mac OS, the standard behavior is that the x button does not quit the app; it just closes the window. Atom remembers the windows you have open when you quit and reopen the app, so if you close a window, it will remember that you had no windows open.

  6. wanghaisheng commented on Jul 11, 2015

    @wanghaisheng
    Author

    thx. it seems so, when i right click the atom icon on Dock and quit the editor ,it works .but click the "x",the atom icon still stays on the Dock.
    is there any config i can set to let atom do the same as command-q when i click the "x" close the window.

  7. maxbrunsfeld commented on Jul 15, 2015

    @maxbrunsfeld
    Contributor

    No, there's no such config setting right now. I know that MacVim has a config setting like that, so it would be a reasonable thing to add. Now that we understand the problem that you're experiencing, would you like to rename this issue, turning it into a feature request for that config setting?

  8. wanghaisheng commented on Jul 15, 2015

    @wanghaisheng
    Author

    how to describe would be proper ,a little advice?

  9. changed the title [-]1.0.2 could not save session on mac[/-] [+]Add a config setting for quitting the app when the last window is closed on Mac OS[/+] on Jul 15, 2015
  10. lee-dohm commented on Jul 16, 2015

    @lee-dohm
    Contributor

    There is a whole, huge sordid history to this. Most of it can be found in #2986. This also looks like a duplicate of #863, would you agree?

    Also, there is the-closer that, last I checked, offered this already.

  11. wanghaisheng commented on Jul 16, 2015

    @wanghaisheng
    Author

    @lee-dohm i tried the solutions in the links you provided,
    neither of these three tabs-closer,close-after-last-tab,the-closer works,when I click the red "x" button as the below image shows
    qq20150716-2 2x

  12. lee-dohm commented on Jul 16, 2015

    @lee-dohm
    Contributor

    You're right, the-closer doesn't cover clicking the red button. I misunderstood.

  13. changed the title [-]Add a config setting for quitting the app when the last window is closed on Mac OS[/-] [+]Add a config setting for quitting the app when the last window is closed on Mac OS clicking the x icon directly[/+] on Jul 16, 2015
  14. janwo commented on Apr 27, 2017

    @janwo

    Any updates?

  15. lee-dohm commented on Apr 27, 2017

    @lee-dohm
    Contributor

    Thanks for the ping @janwo. While we understand that this would be useful for some people's workflows, this isn't something that we're going to be adding to Atom.

  16. lock commented on Apr 2, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  17. locked and limited conversation to collaborators on Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions