Commit Graph

67 Commits

Author SHA1 Message Date
Sadick
41234da15e
Merge pull request #13414 from passeride/master
Added context menu for cinnamon desktop enviroment (Linux)
2021-09-03 12:49:17 +03:00
Rafael Oleza
1a1468b61f Calculate env vars when launching Atom from the desktop 2019-04-11 17:11:07 +02:00
Ash Wilson
5c950409c0
Preserve Atom's exit code in atom.sh 2019-03-28 09:59:13 -04:00
Ash Wilson
2526e69e28
Exit with 1 and a message when -a and -n are both provided 2019-03-22 11:29:21 -04:00
David Wilson
9c9cb12081 Use correct executable name for Atom Dev.app in atom.sh 2018-07-19 10:53:43 -07:00
David Wilson
6797296b75 atom.sh should look for 'Atom Dev.app' on dev channel 2018-07-12 11:36:30 -07:00
David Wilson
d54bb625aa Update atom.sh to support the nightly channel 2018-06-28 12:52:48 -07:00
Max Brunsfeld
c59ebdf609 Silence bash's output before reading from pipe in atom.sh 2018-06-05 10:00:14 -07:00
Max Brunsfeld
81088b6c16 Atom.sh - identify and create atom home dir regardless of platform 2018-06-04 17:22:59 -07:00
lllusion3469
e3628fcf02
Use a named pipe instead of the tty
Works even if stdin is not a terminal.

Some programs can replace a fifo with a named pipe, which would break this.
For example: rsync without --specials
2018-05-29 22:37:15 +02:00
lllusion3469
0e690391d5
Change atom.sh not to spawn a sleep process every second on --wait
As sleep(1) is not a bash builtin, every second a new process is spawed.
To  prevent this, the POSIX read can be used instead.
Since it is (required to be) a bash builtin, it is immediately killed along with bash unlike a longer running sleep would be.
In case stdin is e.g. /dev/null for whatever reason (this would break EDITOR=nano), sleep is still kept to prevent a tight loop.
2018-05-24 15:02:31 +02:00
MoritzKn
0786159002 Add dev channel atom.sh 2017-08-30 05:56:51 +02:00
Nathan Sobo
b5bdf4acb9 Don't enable electron logging by default 2017-08-02 21:03:29 -06:00
Gabor Greif
e95b6965d5 Don't hard-code "Atom.app"
and a few typos
2016-12-27 16:39:24 +01:00
passeride
6f6768bd19 Added context menu for cinnamon desktop enviroment (Linux) 2016-12-09 17:33:26 +01:00
Barry Allard
25650e8de0
atom.sh: fix direct execute 2016-10-24 09:38:34 -07:00
Barry Allard
b957b46c08 atom.sh: fix for renamed .app
Needed because `node-gyp` doesn't work with a space in `Atom Beta.app`, and developers/others want to multiple versions of Atom side-by-side.
2016-10-21 00:34:34 -07:00
Antonio Scandurra
1bdd79d719 Implement atom --benchmark-test to ensure benchmarks are valid on CI 2016-10-14 11:02:59 +02:00
Joe Fitzgerald
d4d05244b3 ATOM_SUPPRESS_ENV_PATCHING > ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT 2016-09-08 12:24:33 -06:00
Joe Fitzgerald
10270609d8 Use ATOM_SUPPRESS_ENV_PATCHING Environment Variable
- Stop using shell whitelist
2016-09-08 10:56:01 -06:00
Antonio Scandurra
ce24a2f1cf Use the correct Atom executable paths on the beta channel
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-08-30 19:25:09 +02:00
Damien Guard
56b23a4a10 Make cli atom --wait work on Cygwin 2016-03-07 14:01:05 -08:00
Thomas Johansen
ae09d687a0 Re-enable console.log via ELECTRON_ENABLE_LOGGING 2015-11-18 17:46:20 +01:00
Max Brunsfeld
feb4bd619f Remove extra space 2015-09-23 17:33:00 -07:00
Max Brunsfeld
b944061eb6 Use beta version when shell script is launched as 'atom-beta' 2015-09-23 14:10:07 -07:00
Machisté N. Quintana
1fa1ae8021 Revert "Use /usr/bin/env bash in hashbang" 2015-06-02 21:28:33 -04:00
Machisté N. Quintana
a64ceadad4 Use /usr/bin/env bash in hashbang
From https://github.com/atom/apm/issues/282#issuecomment-100289741
2015-05-11 07:14:31 -04:00
Kevin Sawicki
4acd5951f5 Use ATOM_HOME for nohup.out location 2015-02-04 10:35:57 -08:00
Dan Wyand
3b13e4f502 🍎 try ~/Applications before using mdfind 2015-01-21 23:01:37 -05:00
Paul Wagland
eb6ce74a12 Use xargs -0 instead of sed, as this is easier to understand.
Fixed atom/atom#4337
Fixes atom/atom#4336
2014-12-05 23:53:07 +01:00
Paul Wagland
5da4846fff Fix atom.sh when running from directory with space
Deal with ATOM_PATH having a space by proper quoting, and not passing
the directory name to dirname.

Fixes atom/atom#4336
2014-11-28 00:37:21 +01:00
Cheng Zhao
6a58f6054a Pass $PATH by command line 2014-11-05 12:11:42 +08:00
Miguel Lloreda
bcbf01c852 💄 Remove unnecessary conditional
`mkdir -p` is an idempotent operation.
2014-10-07 21:39:36 -04:00
Timo Sand
8932eba0bf Add matching of Atom.app more stable
I have this file on my Mac `/Users/timosand/Library/Application Support/com.github.atom.ShipIt/update.85PyXs3/Atom.app` and my `mdfind` returns it. It seems to be a common one, so I thought to remove it from the list to be sure that it selects the right Atom.app
2014-09-19 07:48:21 +03:00
Kevin Sawicki
cc27f2dbb6 Remove spaces around = 2014-07-24 09:35:44 -07:00
Kevin Sawicki
54ce852be4 Store nohup.out in ~/.atom
Storing it in the temp directory can lead to permissions issues when
Atom is run by multiple users.

Closes #3056
2014-07-24 09:27:47 -07:00
Pritam Baral
7627e0b0f0 Minor fix + Remove last references to /tmp 2014-05-19 23:57:48 +05:30
Corey Johnson
dbe15f7dda Merge pull request #2142 from aureliojargas/patch-1
Remove unused 's' option from getopts
2014-05-10 15:53:21 -07:00
Aurelio Jargas
2b73dff0f4 Use $(...) for command substitution, not backticks
Currently both \`...\` and `$(...)` are used for command substitution. It's better to chose just one and stick to it, to avoid confusion.

Some arguments favoring `$(...)`:

* **Easier to read.** The backtick is easily confused with apostrophes and quotes.
* **Easier to nest.** Nesting backticks commands is an escaping nightmare. Using parenthesis is natural: `$(foo $(bar))`
2014-05-10 09:15:53 -03:00
Aurelio Jargas
adf0ff0a67 Remove unused 's' option from getopts
This option is not handled by the next `case` command.
2014-05-10 08:41:30 -03:00
Thomas Buckley-Houston
1ea54f8c92 🐧 If atom.sh has non-zero exit show errors captured by nohup. Refers to #1814 2014-05-06 17:21:01 +01:00
Cheng Zhao
ae1d3b1e80 🐧 Search atom from installed position. 2014-03-25 15:40:43 +08:00
Cheng Zhao
5151faea3d Use unix style install. 2014-03-25 15:40:43 +08:00
Cheng Zhao
19ab197bc1 🐧 Make atom.sh work. 2014-03-18 16:27:43 +08:00
Corey Johnson
96e96c3c7f Merge pull request #1757 from atom/cj-shhhhh
Don't show error messages for version and help cli options
2014-03-13 17:42:19 -07:00
probablycorey
15c51b4417 Redirect help and version stderr to /dev/null
Closes #1580 based on @zcbenz's suggestion.
2014-03-13 15:00:24 -07:00
Kevin Sawicki
31ecd39f08 Don't echo app location 2014-03-13 12:41:08 -07:00
probablycorey
1cbaf8d1f5 Added comments because shell scripts can be confusing 2014-03-13 11:14:26 -07:00
probablycorey
2fd71f2fa8 Use mdfind to locate Atom.app if it isn't in /Applications 2014-03-13 10:57:55 -07:00
probablycorey
54907455fe Add ~/Desktop 2014-03-12 17:44:00 -07:00