-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install atom executable during window.startup()
Previously this was done during `rake install`. Also default to `~/github/atom` as the default resource path when no `--resource-path` argument is specified. This argument will now be required when running in dev mode if the repository is not at the default location. Closes atom#300
- Loading branch information
1 parent
c7ff431
commit d35c871
Showing
6 changed files
with
59 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
open -a Atom -n --args --executed-from="$(pwd)" --pid=$$ $@ | ||
|
||
# Used to exit process when atom is used as $EDITOR | ||
on_die() { | ||
exit 0 | ||
} | ||
trap 'on_die' SIGQUIT SIGTERM | ||
|
||
# Don't exit process if we were told to wait. | ||
while [ "$#" -gt "0" ]; do | ||
case $1 in | ||
-W|--wait) | ||
WAIT=1 | ||
;; | ||
esac | ||
shift | ||
done | ||
|
||
if [ $WAIT ]; then | ||
while true; do | ||
sleep 1 | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters