afrog icon indicating copy to clipboard operation
afrog copied to clipboard

Restore Previous Windows On Start is not working Atom 1.41.0 macOS

Open solongtony opened this issue 5 years ago • 17 comments

Prerequisites

Description

With the Core Setting "Restore Previous Windows On Start" set to "yes" or "always", when I click on the Atom Dock icon or run atom in the terminal my previous project is not restored. An empty editor opens. Interestingly, the previous project that I want to be opened automatically is shown as the most recent entry under File > Reopen Project

Steps to Reproduce

  1. Make sure the Core Setting "Restore Previous Windows On Start" is set to "yes" or "always"
  2. Open a folder from File > Open OR Open a project from File > Reopen Project
  3. Close the Atom window. Optionally (does not make a difference) also quit Atom. (on macOS, so the application does not automatically quit when the window is closed.)
  4. Click on the Atom icon in the Dock OR run atom from the terminal.

Expected behavior:

The previous window will be restored on start.

Actual behavior:

An empty window is opened.

Reproduces how often:

100%

Versions

$ atom --version Atom : 1.41.0 Electron: 4.2.7 Chrome : 69.0.3497.128 Node : 10.11.0

$ apm --version apm 2.4.3 npm 6.2.0 node 10.2.1 x64 atom 1.41.0 python 2.7.16 git 2.20.1

macOS Mojave Version 10.14.6

Additional Information

I found some similar, closed tickets for older versions of Atom. None of the suggestions in them helped. I can reproduce this in safe mode. I have checked permissions for various files and folders. I ran mv ./Library/Application\ Support/Atom/IndexedDB ./Library/Application\ Support/Atom/IndexedDB.backup to get a new IndexedDB. There are no error or any other messages in the developer console in the new blank window that opens.

I just noticed that while I have a project open, I get this:

$ cat ~/.atom/storage/application.json
{"version":"1","windows":[{"projectRoots":["/path/to/my/project"]}]}

as soon as I close the window, I get this:

$ cat ~/.atom/storage/application.json
{"version":"1","windows":[]}

It seems like this is what Atom needs to re-open the project. Why would it delete it?

solongtony avatar Dec 12 '19 21:12 solongtony

I have the exact same problem with macOS Catalina bêta 10.15 (19A573a)

pierre-andre-long avatar Dec 17 '19 02:12 pierre-andre-long

Same problem here, on macOS Catalina 10.15.3. The problem also happens when running Atom in portable mode.

vlady88 avatar Mar 20 '20 15:03 vlady88

Same issue with macOS Catalina 10.15.4 and Atom 1.46.0. (I've also unchecked "Open Empty Editor Start"

ArkoMO93 avatar May 13 '20 17:05 ArkoMO93

I've had the same experience. I've wasted and hour so will go off and find another editor. I did find that Atom uses IndexedDB and that there should be a directory /Library/Application Support/Atom/ to hold the db, but in spite of permission changes and reinstall, nothing ever appears in this directory. Greg Ambrose

gregatreliance avatar Jun 19 '20 08:06 gregatreliance

Any fixes for this so far @atom?

sagargulati avatar Jun 29 '20 19:06 sagargulati

Same issue, Arch Linux.

glibg10b avatar May 11 '21 03:05 glibg10b

Does this still happen on 1.57.0?

icecream17 avatar May 11 '21 21:05 icecream17

Yep :(

Atom    : 1.57.0
Electron: 9.4.4
Chrome  : 83.0.4103.122
Node    : 12.14.1

glibg10b avatar May 12 '21 06:05 glibg10b

Now it works all of a sudden. I didn't change any of Atom's settings, so it probably had something to do with my Arch install. atom --version's output is still the same.

glibg10b avatar May 14 '21 09:05 glibg10b

Guys, same issue here

Atom : 1.57.0 Electron: 9.4.4 Chrome : 83.0.4103.122 Node : 12.14.1 Ubuntu 20.04.2 LTS

brucelourenco avatar Jun 05 '21 10:06 brucelourenco

Same issue

Atom : 1.58.0 Electron: 9.4.4 Chrome : 83.0.4103.122 Node : 12.14.1 macOS: 11.6

CyborgPatrick avatar Nov 03 '21 10:11 CyborgPatrick

same here:

Atom : 1.58.0 Electron: 9.4.4 Chrome : 83.0.4103.122 Node : 12.14.1 macOS: 12.0.1

jherskow avatar Dec 14 '21 12:12 jherskow

Same issue

akaskj avatar Jan 12 '22 09:01 akaskj

Same

Atom : 1.58.0 Electron: 9.4.4 Chrome : 83.0.4103.122 Node : 12.14.1 macOS: 11.6

formula1 avatar Jan 22 '22 03:01 formula1

Same Ubuntu 22.04LTS Atom 1.60.0

golottie-jens avatar Jul 16 '22 19:07 golottie-jens

https://github.blog/2022-06-08-sunsetting-atom/

Not gonna get fixed it seems :( RIP atom

jherskow avatar Jul 17 '22 08:07 jherskow

Is it still not fixed? Because it looks like it is not. Version 1.60.0. Linux Mint.

samo-sato avatar Aug 02 '22 20:08 samo-sato