Commit Graph

135 Commits

Author SHA1 Message Date
simurai
ec9aec6686 Merge branch 'master' into sm-custom-title-bar 2017-02-21 21:56:53 +09:00
Max Brunsfeld
060b027e2a Respect the --resource-path flag 2017-02-17 14:16:53 -08:00
Max Brunsfeld
aea6896c2b Restore correct directory's project state when opening a new file from the command line 2017-02-13 17:23:11 -08:00
Damien Guard
eebc81f6ea Version is used for release channels on windows 2017-02-08 23:24:54 -08:00
Nathan Sobo
c6cae5b8fd Store represented directory paths directly on AtomWindow in main process
Fixes #13729

Previously, when adding a window, we were unable to read its current
project paths out of the hash of the URL during window initialization
because the window still considered itself to be loading. Rather than
fixing this issue, we decided to completely eliminate the sharing of
state between processes in the window.location and instead switch to
cached synchronous RPC for the loadSettings and a dedicated RPC-based
mechanism for the project paths.
2017-02-07 13:15:27 -07:00
simurai
6010c4d7df Add custom-inset title-bar 2017-01-14 16:06:50 +09:00
simurai
c406cc4420 Merge branch 'master' into sm-hidden-all 2017-01-14 10:09:07 +09:00
Michelle Tilley
1fef2fa866 Merge pull request #13604 from atom/mkt-ku-fix-render-process-crash-handler
Ensure a dialog is not opened when webContents crash in headless mode
2017-01-13 10:58:49 -08:00
Michelle Tilley
05f58a432b Ensure a dialog is not opened when webContents crash in headless mode 2017-01-12 14:45:38 -08:00
Vladimir Timofeev
a21841e5f3 Merge commit '1320ff28c39afd563820b30b43389ea38552e74c' into fix-12495 2017-01-07 01:19:50 +03:00
Damien Guard
efbe2cee76 Convert win-shell.coffee to win-shell.js 2016-12-27 16:24:06 -08:00
Damien Guard
5a446ff467 Clean up portable mode, try local .atom before ATOM_HOME 2016-12-11 15:59:24 -08:00
Antonio Scandurra
8e6cef458c Revert "Flush DOM before displaying context menu" 2016-12-06 17:29:49 +01:00
Antonio Scandurra
eb0b48ffe0 🎨 2016-12-06 12:10:58 +01:00
Christopher Chedeau
cd781b9f9d Flush DOM before displaying context menu
Released under CC0
2016-11-28 19:03:32 -08:00
Joe Fitzgerald
1b2d2f0299 Use child_process.spawn instead of execFile
- Fixes #13084
- Kill child process on process exit, if it is running
- Ensure env is set correctly when new windows are launched
2016-11-14 10:06:26 -07:00
Damien Guard
0d0a2ae7b1 Windows 64-bit version of Atom 2016-11-10 16:59:12 -08:00
Lee Dohm
505160f24c Remove --harmony JavaScript flag 2016-10-27 11:50:08 -07:00
Damien Guard
8229924b96 History API, reopen project menu, command and list view 2016-10-21 15:13:59 -07:00
simurai
f05f0db94b Migrate config 2016-10-21 13:58:24 +09:00
simurai
f13fd74342 🎨 Resolve merge conflict 2016-10-15 20:53:02 +09:00
simurai
2571bbc6f2 Merge branch 'master' into sm-hidden-inset
# Conflicts:
#	src/main-process/atom-application.coffee
2016-10-15 19:45:50 +09:00
simurai
ed2c72a586 Add option to hide the title bar 2016-10-15 19:12:53 +09:00
Antonio Scandurra
c54b330d68 Update eslint and fix new script/lint errors 2016-10-14 13:54:10 +02:00
Antonio Scandurra
a36e9883d8 🎨 2016-10-14 13:07:03 +02:00
Antonio Scandurra
5211b49f7d Add a "Run Benchmarks" command to plot benchmark results 2016-10-14 11:02:59 +02:00
Antonio Scandurra
1bdd79d719 Implement atom --benchmark-test to ensure benchmarks are valid on CI 2016-10-14 11:02:59 +02:00
Antonio Scandurra
fa90851e14 Implement atom --benchmark 2016-10-14 11:02:58 +02:00
Wliu
0e99232615 Merge pull request #12782 from Ingramz/remove-unused-variables-obvious
Remove unused variables (obvious ones)
2016-09-29 16:58:06 -04:00
Damien Guard
04b4c3ac9f Merge pull request #12821 from atom/dg-win-allow-multiple-user-instances
Allow Atom on Windows to run multiple instances e.g. on Windows server
2016-09-29 12:39:39 -07:00
Philip Schatz
72110ed40f fixup! 🐛 support variable terminal widths 2016-09-29 13:58:47 -04:00
Damien Guard
2cf2dcca57 Allow Atom on Windows to run multiple instances e.g. on Windows server/Citrix etc 2016-09-29 09:55:34 -07:00
Philip Schatz
7bbc0d12eb 🐛 support variable terminal widths 2016-09-27 14:25:45 -04:00
Indrek Ardel
55f3311c01 Remove unused variables 2016-09-26 20:52:13 +03:00
simurai
e7f204053a 🎨 2016-09-24 16:05:33 +09:00
Nathan Sobo
15a475889c Merge pull request #12762 from atom/ns-mb-minimize-main
Make main-process/main.js as minimal as possible
2016-09-23 09:41:40 -07:00
Nathan Sobo
880e75ff18 Make main-process/main.js as minimal as possible
In order to test changes to main.js, we need to rebuild the application.
For this reason, it makes sense to do as little work as possible here.
In this commit, we change main to just determine the resourcePath, then
use that path to require a start function which can be iterated on in
dev mode.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2016-09-22 17:30:52 -06:00
Nathan Sobo
f14587d3cc Use app activate event instead of defunct activate-with-no-open-windows
This restores the ability to open a Window by single-clicking the dock
icon on macOS.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2016-09-22 15:54:44 -06:00
Nathan Sobo
19a4f1ab89 Null guard AtomWindow instance in window-method ipc handler
Since things are async, I think the window could potentially disappear
before we can handle the message.
2016-09-22 14:14:37 -06:00
Nathan Sobo
3a4ae04f74 Use call/respondTo helpers to return a promise from window method ipcs
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2016-09-22 12:18:09 -06:00
Nathan Sobo
50128949d4 Call window methods on AtomWindow when ipc'ing from render process
This enables saveState to be called when requesting a window reload from the render process.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2016-09-22 11:41:57 -06:00
Nathan Sobo
9ace7b899c Bind promptForRestart since it calls a method now
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2016-09-22 11:29:39 -06:00
Max Brunsfeld
3039024d17 Go back to using promise based on window:loaded event in main process tests 2016-09-21 11:37:24 -07:00
Max Brunsfeld
da6bfedc76 Merge branch 'master' into mb-ns-avoid-adding-non-existent-project-directories 2016-09-21 09:54:04 -07:00
simurai
a4435305f1 Merge branch 'master' into pb-hidden-inset
# Conflicts:
#	src/main-process/atom-window.coffee
2016-09-21 14:48:22 +09:00
Max Brunsfeld
833b3b0ab0 Save state when reloading AtomWindow
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-20 16:10:11 -07:00
Nathan Sobo
7872875c57 🎨 2016-09-20 15:15:55 -06:00
Nathan Sobo
fe9a7d1db3 Preserve command line flags when restarting
This performs restarts in the main process and uses ipc to request restarts from application windows. We preserve the following settings:

* dev mode
* custom resource path
* safe mode
* portable mode
* socket path
* log file path
* user data dir
2016-09-20 15:13:46 -06:00
Nathan Sobo
1d740b4169 Relaunch Atom when changing the title bar style
Now that we have the required API

Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2016-09-20 11:39:58 -06:00
Max Brunsfeld
30fdb70dfd Initialize app-started promise before reloading AtomWindow 2016-09-20 09:53:54 -07:00