You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-editors/atom/files/atom-unbundle-electron-r3.p...

40 lines
1.2 KiB

From 342dc685f8139e950924c04f1d460052e7531fb5 Mon Sep 17 00:00:00 2001
From: Elvis Pranskevichus <elvis@magic.io>
Date: Thu, 5 May 2016 17:23:35 -0400
Subject: [PATCH] Unbundle electron
---
atom.sh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/atom.sh b/atom.sh
index 935204bfc..0ad3f5b23 100755
--- a/atom.sh
+++ b/atom.sh
@@ -138,16 +138,21 @@ elif [ $OS == 'Linux' ]; then
;;
esac
+ export NPM_CONFIG_NODEDIR="{{NPM_CONFIG_NODEDIR}}"
+ export ATOM_RESOURCE_PATH="{{ATOM_RESOURCE_PATH}}"
+ export LOCAL_GIT_DIRECTORY="{{ATOM_PREFIX}}/usr"
+ ATOM_PATH="{{ATOM_PATH}}"
+
: ${TMPDIR:=/tmp}
[ -x "$ATOM_PATH" ] || ATOM_PATH="$TMPDIR/atom-build/Atom/atom"
if [ $EXPECT_OUTPUT ]; then
- "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@"
+ "$ATOM_PATH" --app="$ATOM_RESOURCE_PATH" --executed-from="$(pwd)" --pid=$$ "$@"
exit $?
else
(
- nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
+ nohup "$ATOM_PATH" --app="$ATOM_RESOURCE_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
if [ $? -ne 0 ]; then
cat "$ATOM_HOME/nohup.out"
exit $?
--
2.16.4