Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Make CLI installation easier. #1464

Merged
merged 15 commits into from
Jan 23, 2014
Merged

Make CLI installation easier. #1464

merged 15 commits into from
Jan 23, 2014

Conversation

probablycorey
Copy link

On startup Atom will try and install apm and atom to /usr/local/bin. If it can't a warning is logged to the console.

If the command window:install-shell-commands is triggered or the Atom > Install Shell Commands menu item is clicked a dialog will pop-up on success or failure.

menubar-3

menubar

Fixes #1270

destinationPath = path.join(directory, 'bin', 'source')
commandFilePath = temp.openSync("atom-command").path
commandName = path.basename(commandFilePath)
instalationPath = temp.mkdirSync("atom-bin")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

installationPath

@kevinsawicki
Copy link
Contributor

Does the command show two dialogs on success when ran?

@probablycorey
Copy link
Author

It doesn't show two dialogs on success anymore.

else
atom.confirm
message: "Commands installed."
detailedMessage: "The shell commands `atom` and `apm` are installed."
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm really tempted to switch this over to promises

@probablycorey
Copy link
Author

Fixes #1270

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle installation of atom script for users without system privilege
2 participants