Commit Graph

294 Commits

Author SHA1 Message Date
Max Brunsfeld
12a54fb04f Use callback when calling mkdirp in recovery service 2018-05-01 11:48:47 -07:00
Byron Igoe
305bf9b4cb Await async mkdirp 2018-05-01 11:48:47 -07:00
Byron Igoe
f17add20c1 Cleaned up 2018-05-01 11:48:47 -07:00
Byron Igoe
a885d8a030 Fixes https://github.com/atom/atom/issues/17013 by creating the recovery directory 2018-05-01 11:48:47 -07:00
Max Brunsfeld
3f8b463b15 Move auto update initialization back to AtomApplication.initialize
This fixes some CI problems introduced in #17216
2018-05-01 11:01:18 -07:00
Max Brunsfeld
1ad9715e9d Wait to initialize auto update manager until config is loaded 2018-04-25 09:33:53 -07:00
Max Brunsfeld
85d745cbec Remove 'project' command line flag
From what I can tell, this flag never worked correctly. Instead of
opening the paths specified in the project file, the directory
containing the project file itself would always be opened.
2018-04-25 07:45:58 -07:00
Max Brunsfeld
7a5d727e22 Avoid writing to config file while quitting 2018-04-18 10:46:38 -07:00
Ash Wilson
ad8392b2f5 Accept a filePath in the set-user-settings IPC call 2018-03-27 08:55:07 -04:00
Antonio Scandurra
98f2fdecfe Merge pull request #16926 from atom/fix-typo
Remove extra hyphen in option description
2018-03-12 18:25:29 +01:00
Lee Dohm
1c6b431bf8 Remove extra hyphen in option description 2018-03-10 09:15:47 -08:00
Philip Weiss
d7eff0ec55 Merge branch 'master' into fb-pw-simple-project-config 2018-03-09 14:06:14 -08:00
Philip Weiss
e14ffb9420 set default path inside of project.replace 2018-03-09 14:04:21 -08:00
Max Brunsfeld
a9fa57139a Fix regression where config file was loaded in specs 2018-03-09 11:15:50 -08:00
Philip Weiss
9282f07d07 return correct contents when no config present 2018-03-08 22:00:51 -08:00
Philip Weiss
a31795e1f3 fix linting issues 2018-03-08 21:53:50 -08:00
Philip Weiss
9d3c91b150 fix more nits 2018-03-08 21:49:18 -08:00
Philip Weiss
b4f9faba42 fix nits 2018-03-06 14:55:51 -08:00
Philip Weiss
aa925c2a4c remove atomproject format restriction 2018-03-06 13:33:54 -08:00
Philip Weiss
062dfdea80 address PR comments 2018-03-06 11:06:22 -08:00
Philip Weiss
f111eaa543 remove console log 2018-03-01 21:02:48 -08:00
Philip Weiss
7ce5b000e4 address more of max's comments 2018-03-01 19:35:59 -08:00
youngjoo88kim
9d55753ccb Add 'await' keyword at async function call and remove unnecessary parameter 2018-02-28 18:48:12 +09:00
Philip Weiss
8f672b2e5f Merge branch 'master' into fb-pw-simple-project-config 2018-02-26 17:13:58 -08:00
Philip Weiss
e376096e8f use setpaths instead of command line paths 2018-02-25 21:57:18 -08:00
Philip Weiss
bd4231b936 relativize to atom project 2018-02-25 20:46:52 -08:00
Philip Weiss
6eee51be7e atomProject -> atomproject 2018-02-24 18:04:56 -08:00
Philip Weiss
a419d47ef8 fix linting issues 2018-02-24 18:03:06 -08:00
Philip Weiss
347d547d5f guard against edge cases 2018-02-24 17:58:46 -08:00
Philip Weiss
1483c0c96d add more data passed through with projectSettings 2018-02-24 17:50:18 -08:00
Philip Weiss
e2c480847c atom project open in their own windows and behave more sanely 2018-02-23 17:38:36 -08:00
Landon Abney
138115f2a8 🐛 Handle empty username
If Atom is launched in a shell that is missing the `USER`/`USERNAME`
environment variable it locks up due to an unhandled error from
`crypto.update`. This switches to using Node.js's built in
`os.userInfo()` method to retrieve the current user name,
allowing Atom to complete initialization in this scenario.

Fixes #16821.
2018-02-22 13:18:56 -08:00
Max Brunsfeld
e638100158 Merge pull request #16810 from atom/mb-dont-write-config-when-quitting
Don't try to write config file while quitting
2018-02-21 10:44:56 -08:00
Max Brunsfeld
fb85656d8f Don't try to write config file while quitting 2018-02-21 09:29:02 -08:00
Max Brunsfeld
6b9e87ecd6 Serialize settings as JSON when sending them to the main process 2018-02-21 09:18:15 -08:00
Philip Weiss
ad40ff9825 add failure mode for reading project settings 2018-02-18 17:56:55 -08:00
Philip Weiss
c69b8d38e8 remove whitespace 2018-02-18 17:05:50 -08:00
Philip Weiss
bf6a4e3db4 add .atomProject files 2018-02-18 15:03:00 -08:00
Max Brunsfeld
2575cf6b1a Fix path duplication after decaffeinating main process code 2018-02-16 13:41:17 -08:00
Max Brunsfeld
e3135f1938 Continue to normalize any non-URL path command line arg
Also, remove duplicate file stat'ing in AtomWindow
2018-02-15 10:40:31 -08:00
Max Brunsfeld
98070275b5 Normalize command line paths with windows drive letters 2018-02-14 17:22:36 -08:00
Max Brunsfeld
c47ed5ea06 Merge pull request #16701 from atom/fb-pw-configurable-loadSettings
add `configurable: true` to browserwindow.loadSettingsJSON
2018-02-08 23:07:56 +01:00
Philip Weiss
c3309ee9b9 remove trailing comma 2018-02-08 12:55:20 -08:00
Philip Weiss
ef50a52405 add configurable: true to browserwindow.loadSettingsJSON 2018-02-08 10:33:47 -08:00
Antonio Scandurra
49e704291d Register for core.titleBar changes after the initial load of config
This prevents the change handler for `core.titleBar` from being
triggered every time a new instance of the main process is created. This
fixes a regression that was causing users to be prompted for a restart
every time they opened Atom.

Co-authored-by: Max Brunsfeld <maxbrunsfeld@github.com>
Co-authored-by: Nathan Sobo <nathan@github.com>
2018-01-31 09:24:15 -07:00
Max Brunsfeld
1d20b8ee1d Start work on routing all config file IO through main process 2018-01-25 20:35:00 -08:00
Bryant Ung
c100ad0108 Merge pull request #16525 from atom/wl-async-message-box
Use async dialog.showMessageBox
2018-01-21 13:39:48 -08:00
Antonio Scandurra
ff6dc42fcd Merge pull request #16594 from atom/as-stop-transpiling-core-js-paths
Stop using Babel in Atom Core (benchmarks, exports, src)
2018-01-20 10:30:56 +01:00
Wliu
056c825d18 Merge branch 'master' into wl-async-message-box 2018-01-19 16:12:37 -05:00
Max Brunsfeld
9f35de4413 Always return an array from AtomApplication.launch 2018-01-19 13:08:49 -08:00