summarylogtreecommitdiffstats
path: root/atom-git
diff options
context:
space:
mode:
authorAaron McDaniel2018-10-23 16:53:17 -0500
committerAaron McDaniel2018-10-23 16:53:17 -0500
commitacbcdd821bdd0078e992483fcf83c40c708adaad (patch)
treebcc0ff89b3b5f0585f2d2ff3a09061196a6a7aeb /atom-git
parent77954060fd3775c2f28c2ba47a076f18f94ce99a (diff)
downloadaur-acbcdd821bdd0078e992483fcf83c40c708adaad.tar.gz
Updated with arch community fixes by Nicola
Diffstat (limited to 'atom-git')
-rw-r--r--atom-git75
1 files changed, 0 insertions, 75 deletions
diff --git a/atom-git b/atom-git
deleted file mode 100644
index 69ef3f07024a..000000000000
--- a/atom-git
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/bin/bash
-
-# Always disable environment shell grab, causes lockups
-export ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=true
-
-while getopts ":wtfvh-:" opt; do
- case "$opt" in
- -)
- case "${OPTARG}" in
- wait)
- WAIT=1
- ;;
- help|version)
- REDIRECT_STDERR=1
- EXPECT_OUTPUT=1
- ;;
- foreground|test)
- EXPECT_OUTPUT=1
- ;;
- esac
- ;;
- w)
- WAIT=1
- ;;
- h|v)
- REDIRECT_STDERR=1
- EXPECT_OUTPUT=1
- ;;
- f|t)
- EXPECT_OUTPUT=1
- ;;
- esac
-done
-
-if [ $REDIRECT_STDERR ]; then
- exec 2> /dev/null
-fi
-
-if [ $EXPECT_OUTPUT ]; then
- export ELECTRON_ENABLE_LOGGING=1
-fi
-
-SCRIPT=$(readlink -f "$0")
-USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..)
-
-ATOM_PATH="$USR_DIRECTORY/share/atom-git/atom"
-
-ATOM_HOME="${ATOM_HOME:-$HOME/.atom}"
-mkdir -p "$ATOM_HOME"
-
-if [ $EXPECT_OUTPUT ]; then
- "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@"
- exit $?
-else
- (
- nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
- if [ $? -ne 0 ]; then
- cat "$ATOM_HOME/nohup.out"
- exit $?
- fi
- ) &
-fi
-
-# Exits this process when Atom is used as $EDITOR
-on_die() {
- exit 0
-}
-trap 'on_die' SIGQUIT SIGTERM
-
-# If the wait flag is set, don't exit this process until Atom tells it to.
-if [ $WAIT ]; then
- while true; do
- sleep 1
- done
-fi