aboutsummaryrefslogtreecommitdiff
path: root/development/atom
diff options
context:
space:
mode:
Diffstat (limited to 'development/atom')
-rw-r--r--development/atom/README34
-rw-r--r--development/atom/atom.SlackBuild177
-rw-r--r--development/atom/atom.desktop14
-rw-r--r--development/atom/atom.info10
-rw-r--r--development/atom/doinst.sh3
-rw-r--r--development/atom/fix-atom.sh.patch115
-rw-r--r--development/atom/fix-ime-events-handler-electron-1.4.patch47
-rw-r--r--development/atom/slack-desc19
-rw-r--r--development/atom/use-system-electron.patch113
9 files changed, 0 insertions, 532 deletions
diff --git a/development/atom/README b/development/atom/README
deleted file mode 100644
index 801daa2b59342..0000000000000
--- a/development/atom/README
+++ /dev/null
@@ -1,34 +0,0 @@
-Atom is a Chrome-based text editor, hackable and full-featured.
-
-Atom comes loaded with the features you've come to expect from
-a modern text editor, like a file system browser, fuzzy finder for
-quickly opening files, fast project-wide search and replace,
-snippets, code folding and more.
-
-To build Atom is necessary to download about 500MB of data,
-which are temporarily stored in ~/.atom, which can be
-deleted after building.
-
-If you use apmd package you need rename apm tool.
-
-Optional building features:
-* Disable compiling metrics module for Google Analytics
- for people who love your privacy
- https://github.com/atom/metrics
- DISABLE_METRICS=yes|no (default: no)
-* Delete temporary data cached after building package
- DELETE_CACHE=yes|no (default: no)
-* Use atom with some version of electron previously
- installed in the system. This feature don't make
- a distributable binary, and you can use like as node
- script application. This requires electron
- available in SBo
- ELECTRON=yes|no (default=no)
-
-If you need to use any option do something like:
-
-ELECTRON=yes ./atom.SlackBuild
-
-NOTE:
-Atom may failed to build at first attempt.
-Simply retry the process and it should be working.
diff --git a/development/atom/atom.SlackBuild b/development/atom/atom.SlackBuild
deleted file mode 100644
index bf11358ecda28..0000000000000
--- a/development/atom/atom.SlackBuild
+++ /dev/null
@@ -1,177 +0,0 @@
-#!/bin/bash
-
-# Slackware build script for atom
-
-# Copyright 2013-2016 Dhaby Xiloj <slack.dhabyx@gmail.com>
-# All rights reserved.
-#
-# Redistribution and use of this script, with or without modification, is
-# permitted provided that the following conditions are met:
-#
-# 1. Redistributions of this script must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-cd $(dirname $0) ; CWD=$(pwd)
-
-PRGNAM=atom
-VERSION=${VERSION:-1.50.0}
-BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
-PKGTYPE=${PKGTYPE:-tgz}
-
-#Disable send metrics to Google Analytics module
-DISABLE_METRICS=${DISABLE_METRICS:-no}
-#Clean cache data after building
-DELETE_CACHE=${DELETE_CACHE:-no}
-#Use pre-installed electron from SBo
-ELECTRON=${ELECTRON:-no}
-
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i586 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
-
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
-if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
- echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
- exit 0
-fi
-
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
-if [[ "$ARCH" = "i"?"86" ]]; then
- LIBDIRSUFFIX=""
- NPMARCH="ia32"
- ARCH_OUTPUT="i386" # for detect output directory
-elif [ "$ARCH" = "x86_64" ]; then
- LIBDIRSUFFIX="64"
- NPMARCH="x64"
- ARCH_OUTPUT="amd64" # for detect output directory
-else
- echo "Your platform $ARCH is not supported."
- exit 1
-fi
-
-set -e
-
-rm -rf $PKG
-mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION
-cd $PRGNAM-$VERSION
-chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-if [ "$ELECTRON" != "no" ]; then
- # test if electron is installed
- ELECTRON_VERSION=$(electron --version | tr -d 'v')
-fi
-
-if [ "${ELECTRON_VERSION}" != "" ]; then
- # change electron version in package.json
- sed -i -E -e 's/"electronVersion": "[0-9.]+"/"electronVersion": "'${ELECTRON_VERSION}'"/g' package.json
- # patch for use electron pre-installed
- patch -p1 < $CWD/use-system-electron.patch
- patch -p1 < $CWD/fix-atom.sh.patch
- # patch for IME events from ARCH AUR PKGBuild
- patch -p1 < $CWD/fix-ime-events-handler-electron-1.4.patch
-fi
-
-if [ "$DISABLE_METRICS" = "yes" ]; then
- sed -i '/"metrics":/d' package.json
-fi
-
-echo '*********************************************************************'
-echo '* The installation process will download a lot of modules for atom. *'
-echo '*********************************************************************'
-
-npm_config_arch=$NPMARCH \
-npm_config_target_arch=$NPMARCH \
-PYTHON=python2 \
- ./script/build
-
-# Manual installation since --install-dir option is deleted
-# Installation based on spec file from official RPM package from atom
-install -d $PKG/usr/{bin,doc,share}
-
-if [ "${ELECTRON_VERSION}" != "" ]; then
- cp -r out/app $PKG/usr/share/atom
- # apm - manually installation to upstream recommended place
- ATOM_RESOURCES=/usr/share/atom/resources/app
- install -d $PKG/$ATOM_RESOURCES
- cp -r apm $PKG/$ATOM_RESOURCES
- # fix paths for apm
- sed -i -e 's#'$TMP/$PRGNAM-$VERSION'#'$ATOM_RESOURCES'#g' \
- $PKG/$ATOM_RESOURCES/apm/node_modules/atom-package-manager/package.json
- sed -i -e 's#resources/app.asar##g' \
- $PKG/$ATOM_RESOURCES/apm/node_modules/atom-package-manager/lib/apm.js
-else
- # packaged installation
- cp -r out/$PRGNAM-$VERSION-$ARCH_OUTPUT $PKG/usr/share/atom
-fi
-
-install -Dm755 atom.sh $PKG/usr/bin/atom
-(
- cd $PKG/usr/bin
- ln -sf ../share/atom/resources/app/apm/node_modules/.bin/apm apm
-)
-
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-# use only if you use apmd package from Slackware pastures
-# mv $PKG/usr/bin/apm $PKG/usr/bin/atom-apm
-
-# move and configure icons and .desktop file
-(
- cd resources/app-icons/stable/png
- for IMG in *.png
- do
- DIR_NAME=${IMG%.*}x${IMG%.*}
- install -D $IMG $PKG/usr/share/icons/hicolor/$DIR_NAME/apps/$PRGNAM.png
- done
-)
-mkdir -p $PKG/usr/share/applications
-cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
-
-
-if [ "$DELETE_CACHE" = "yes" ]; then
- # delete temporal data
- rm -rf ~/.atom/
-fi
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -ar LICENSE.md README.md CONTRIBUTING.md CHANGELOG.md docs \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > \
- $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
-mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
-
-cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/atom/atom.desktop b/development/atom/atom.desktop
deleted file mode 100644
index 9c7fc4b64087f..0000000000000
--- a/development/atom/atom.desktop
+++ /dev/null
@@ -1,14 +0,0 @@
-[Desktop Entry]
-Name=Atom
-Comment=A hackable text editor for the 21st Century.
-GenericName=Text Editor
-GenericName[es]=Editor de texto
-GenericName[it]=Editor di testo
-GenericName[pt]=Editor de texto
-Exec=/usr/bin/atom %U
-Icon=atom
-Type=Application
-StartupNotify=true
-Terminal=false
-Categories=GNOME;GTK;Utility;TextEditor;Development;
-MimeType=text/plain;
diff --git a/development/atom/atom.info b/development/atom/atom.info
deleted file mode 100644
index bdfaa22a63366..0000000000000
--- a/development/atom/atom.info
+++ /dev/null
@@ -1,10 +0,0 @@
-PRGNAM="atom"
-VERSION="1.50.0"
-HOMEPAGE="https://atom.io/"
-DOWNLOAD="https://github.com/atom/atom/archive/v1.50.0/atom-1.50.0.tar.gz"
-MD5SUM="d02081ca1c02726f0ae4e72bd27e5139"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
-REQUIRES="nodejs"
-MAINTAINER="DhabyX"
-EMAIL="slack.dhabyx@gmail.com"
diff --git a/development/atom/doinst.sh b/development/atom/doinst.sh
deleted file mode 100644
index 5fb28930db0b9..0000000000000
--- a/development/atom/doinst.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-if [ -x /usr/bin/update-desktop-database ]; then
- /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
-fi
diff --git a/development/atom/fix-atom.sh.patch b/development/atom/fix-atom.sh.patch
deleted file mode 100644
index c65ae86d908d9..0000000000000
--- a/development/atom/fix-atom.sh.patch
+++ /dev/null
@@ -1,115 +0,0 @@
-diff -Naur a/atom.sh c/atom.sh
---- a/atom.sh 2017-02-17 10:53:06.000000000 -0600
-+++ c/atom.sh 2017-02-24 23:45:17.745685040 -0600
-@@ -1,14 +1,5 @@
- #!/bin/bash
-
--if [ "$(uname)" == 'Darwin' ]; then
-- OS='Mac'
--elif [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then
-- OS='Linux'
--else
-- echo "Your platform ($(uname -a)) is not supported."
-- exit 1
--fi
--
- if [ "$(basename $0)" == 'atom-beta' ]; then
- BETA_VERSION=true
- else
-@@ -54,79 +45,29 @@
- export ELECTRON_ENABLE_LOGGING=1
- fi
-
--if [ $OS == 'Mac' ]; then
-- if [ -L "$0" ]; then
-- SCRIPT="$(readlink "$0")"
-- else
-- SCRIPT="$0"
-- fi
-- ATOM_APP="$(dirname "$(dirname "$(dirname "$(dirname "$SCRIPT")")")")"
-- if [ "$ATOM_APP" == . ]; then
-- unset ATOM_APP
-- else
-- ATOM_PATH="$(dirname "$ATOM_APP")"
-- ATOM_APP_NAME="$(basename "$ATOM_APP")"
-- fi
--
-- if [ -n "$BETA_VERSION" ]; then
-- ATOM_EXECUTABLE_NAME="Atom Beta"
-- else
-- ATOM_EXECUTABLE_NAME="Atom"
-- fi
--
-- if [ -z "${ATOM_PATH}" ]; then
-- # If ATOM_PATH isn't set, check /Applications and then ~/Applications for Atom.app
-- if [ -x "/Applications/$ATOM_APP_NAME" ]; then
-- ATOM_PATH="/Applications"
-- elif [ -x "$HOME/Applications/$ATOM_APP_NAME" ]; then
-- ATOM_PATH="$HOME/Applications"
-- else
-- # We haven't found an Atom.app, use spotlight to search for Atom
-- ATOM_PATH="$(mdfind "kMDItemCFBundleIdentifier == 'com.github.atom'" | grep -v ShipIt | head -1 | xargs -0 dirname)"
--
-- # Exit if Atom can't be found
-- if [ ! -x "$ATOM_PATH/$ATOM_APP_NAME" ]; then
-- echo "Cannot locate ${ATOM_APP_NAME}, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing ${ATOM_APP_NAME}."
-- exit 1
-- fi
-- fi
-- fi
-
-- if [ $EXPECT_OUTPUT ]; then
-- "$ATOM_PATH/$ATOM_APP_NAME/Contents/MacOS/$ATOM_EXECUTABLE_NAME" --executed-from="$(pwd)" --pid=$$ "$@"
-- exit $?
-- else
-- open -a "$ATOM_PATH/$ATOM_APP_NAME" -n --args --executed-from="$(pwd)" --pid=$$ --path-environment="$PATH" "$@"
-- fi
--elif [ $OS == 'Linux' ]; then
-- SCRIPT=$(readlink -f "$0")
-- USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..)
--
-- if [ -n "$BETA_VERSION" ]; then
-- ATOM_PATH="$USR_DIRECTORY/share/atom-beta/atom"
-- else
-- ATOM_PATH="$USR_DIRECTORY/share/atom/atom"
-- fi
--
-- ATOM_HOME="${ATOM_HOME:-$HOME/.atom}"
-- mkdir -p "$ATOM_HOME"
-+if [ -n "$BETA_VERSION" ]; then
-+ ATOM_PATH="electron --app=/usr/share/atom-beta/atom"
-+else
-+ ATOM_PATH="electron --app=/usr/share/atom"
-+fi
-
-- : ${TMPDIR:=/tmp}
-+ATOM_HOME="${ATOM_HOME:-$HOME/.atom}"
-+mkdir -p "$ATOM_HOME"
-
-- [ -x "$ATOM_PATH" ] || ATOM_PATH="$TMPDIR/atom-build/Atom/atom"
-+: ${TMPDIR:=/tmp}
-
-- if [ $EXPECT_OUTPUT ]; then
-- "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@"
-+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 $?
-- 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
-+ ) &
- fi
-
- # Exits this process when Atom is used as $EDITOR
diff --git a/development/atom/fix-ime-events-handler-electron-1.4.patch b/development/atom/fix-ime-events-handler-electron-1.4.patch
deleted file mode 100644
index db5681d4fd5ae..0000000000000
--- a/development/atom/fix-ime-events-handler-electron-1.4.patch
+++ /dev/null
@@ -1,47 +0,0 @@
---- a/src/text-editor-component.coffee
-+++ b/src/text-editor-component.coffee
-@@ -110,6 +110,7 @@ class TextEditorComponent
- @updateSync()
- @checkForVisibilityChange()
- @initialized = true
-+ @checkpointForIME = null
-
- destroy: ->
- @mounted = false
-@@ -305,19 +306,20 @@ class TextEditorComponent
- # User escape to cancel
- # 4. compositionend fired
- # OR User chooses a completion
-- # 4. compositionend fired
-- # 5. textInput fired; event.data == the completion string
-+ # 4. textInput fired; event.data == the completion string
-+ # 5. compositionend fired
-
-- checkpoint = null
- @domNode.addEventListener 'compositionstart', =>
- if @openedAccentedCharacterMenu
- @editor.selectLeft()
- @openedAccentedCharacterMenu = false
-- checkpoint = @editor.createCheckpoint()
-+ @checkpointForIME = @editor.createCheckpoint()
- @domNode.addEventListener 'compositionupdate', (event) =>
- @editor.insertText(event.data, select: true)
- @domNode.addEventListener 'compositionend', (event) =>
-- @editor.revertToCheckpoint(checkpoint)
-+ if @checkpointForIME
-+ @editor.revertToCheckpoint(@checkpointForIME)
-+ @checkpointForIME = null
- event.target.value = ''
-
- # Listen for selection changes and store the currently selected text
-@@ -354,6 +356,10 @@ class TextEditorComponent
- onTextInput: (event) =>
- event.stopPropagation()
-
-+ if @checkpointForIME
-+ @editor.revertToCheckpoint(@checkpointForIME)
-+ @checkpointForIME = null
-+
- # WARNING: If we call preventDefault on the input of a space character,
- # then the browser interprets the spacebar keypress as a page-down command,
- # causing spaces to scroll elements containing editors. This is impossible
diff --git a/development/atom/slack-desc b/development/atom/slack-desc
deleted file mode 100644
index c90d0b3d60b57..0000000000000
--- a/development/atom/slack-desc
+++ /dev/null
@@ -1,19 +0,0 @@
-# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description.
-# Line up the first '|' above the ':' following the base package name, and
-# the '|' on the right side marks the last column you can put a character in.
-# You must make exactly 11 lines for the formatting to be correct. It's also
-# customary to leave one space after the ':' except on otherwise blank lines.
-
- |-----handy-ruler------------------------------------------------------|
-atom: atom (Chrome-based and Hackable text editor)
-atom:
-atom: A chrome-based text editor, with full-featured, right out of the
-atom: box: file system browser, multiple panes, snippets, and more.
-atom:
-atom:
-atom:
-atom:
-atom:
-atom:
-atom:
diff --git a/development/atom/use-system-electron.patch b/development/atom/use-system-electron.patch
deleted file mode 100644
index eba8b5ed743dd..0000000000000
--- a/development/atom/use-system-electron.patch
+++ /dev/null
@@ -1,113 +0,0 @@
-diff -Naur a/script/build b/script/build
---- a/script/build 2017-05-25 12:32:43.000000000 -0600
-+++ b/script/build 2017-06-03 14:39:33.504500031 -0600
-@@ -24,7 +24,6 @@
- .wrap(yargs.terminalWidth())
- .argv
-
--const checkChromedriverVersion = require('./lib/check-chromedriver-version')
- const cleanOutputDirectory = require('./lib/clean-output-directory')
- const codeSignOnMac = require('./lib/code-sign-on-mac')
- const compressArtifacts = require('./lib/compress-artifacts')
-@@ -36,7 +35,6 @@
- const generateAPIDocs = require('./lib/generate-api-docs')
- const generateMetadata = require('./lib/generate-metadata')
- const generateModuleCache = require('./lib/generate-module-cache')
--const generateStartupSnapshot = require('./lib/generate-startup-snapshot')
- const installApplication = require('./lib/install-application')
- const packageApplication = require('./lib/package-application')
- const prebuildLessCache = require('./lib/prebuild-less-cache')
-@@ -51,7 +49,6 @@
- process.exit(1)
- })
-
--checkChromedriverVersion()
- cleanOutputDirectory()
- copyAssets()
- transpilePackagesWithCustomTranspilerPaths()
-@@ -64,47 +61,4 @@
- generateMetadata()
- generateAPIDocs()
- dumpSymbols()
-- .then(packageApplication)
-- .then(packagedAppPath => generateStartupSnapshot(packagedAppPath).then(() => packagedAppPath))
-- .then(packagedAppPath => {
-- if (process.platform === 'darwin') {
-- if (argv.codeSign) {
-- codeSignOnMac(packagedAppPath)
-- } else {
-- console.log('Skipping code-signing. Specify the --code-sign option to perform code-signing'.gray)
-- }
-- } else if (process.platform === 'win32') {
-- if (argv.createWindowsInstaller) {
-- return createWindowsInstaller(packagedAppPath, argv.codeSign).then(() => packagedAppPath)
-- }
-- else {
-- console.log('Skipping creating installer. Specify the --create-windows-installer option to create a Squirrel-based Windows installer. Code-signing was skipped too.'.gray)
-- }
-- } else if (process.platform === 'linux') {
-- if (argv.createDebianPackage) {
-- createDebianPackage(packagedAppPath)
-- } else {
-- console.log('Skipping creating debian package. Specify the --create-debian-package option to create it.'.gray)
-- }
--
-- if (argv.createRpmPackage) {
-- createRpmPackage(packagedAppPath)
-- } else {
-- console.log('Skipping creating rpm package. Specify the --create-rpm-package option to create it.'.gray)
-- }
-- }
--
-- return Promise.resolve(packagedAppPath)
-- }).then(packagedAppPath => {
-- if (argv.compressArtifacts) {
-- compressArtifacts(packagedAppPath)
-- } else {
-- console.log('Skipping artifacts compression. Specify the --compress-artifacts option to compress Atom binaries (and symbols on macOS)'.gray)
-- }
--
-- if (argv.install != null) {
-- installApplication(packagedAppPath, argv.install)
-- } else {
-- console.log('Skipping installation. Specify the --install option to install Atom'.gray)
-- }
-- })
-+
-diff -Naur a/script/package.json b/script/package.json
---- a/script/package.json 2017-05-25 12:32:43.000000000 -0600
-+++ b/script/package.json 2017-06-03 14:39:33.505500053 -0600
-@@ -8,9 +8,6 @@
- "colors": "1.1.2",
- "csslint": "1.0.2",
- "donna": "1.0.13",
-- "electron-chromedriver": "~1.3",
-- "electron-link": "0.0.22",
-- "electron-mksnapshot": "~1.3",
- "electron-packager": "7.3.0",
- "electron-winstaller": "2.5.1",
- "fs-extra": "0.30.0",
-diff -Naur a/src/main-process/atom-application.coffee b/src/main-process/atom-application.coffee
---- a/src/main-process/atom-application.coffee 2017-05-25 12:32:43.000000000 -0600
-+++ b/src/main-process/atom-application.coffee 2017-06-03 14:39:55.687979978 -0600
-@@ -821,7 +821,7 @@
- @restart()
-
- restart: ->
-- args = []
-+ args = ["--app=/usr/share/atom"]
- args.push("--safe") if @safeMode
- args.push("--log-file=#{@logFile}") if @logFile?
- args.push("--socket-path=#{@socketPath}") if @socketPath?
-diff -Naur a/src/package-manager.coffee b/src/package-manager.coffee
---- a/src/package-manager.coffee 2017-05-25 12:32:43.000000000 -0600
-+++ b/src/package-manager.coffee 2017-06-03 14:39:33.505500053 -0600
-@@ -150,7 +150,7 @@
- apmRoot = path.join(process.resourcesPath, 'app', 'apm')
- @apmPath = path.join(apmRoot, 'bin', commandName)
- unless fs.isFileSync(@apmPath)
-- @apmPath = path.join(apmRoot, 'node_modules', 'atom-package-manager', 'bin', commandName)
-+ @apmPath = path.join('/usr/share/atom/resources/app/apm', 'node_modules', 'atom-package-manager', 'bin', commandName)
- @apmPath
-
- # Public: Get the paths being used to look for packages.