Portable mode enhancements #13426

Merged
merged 1 commit into from Dec 12, 2016

Projects

None yet

3 participants

@damieng
Member
damieng commented Dec 12, 2016 edited

This PR addresses a number of niggles with portable mode, namely:

  1. Add macOS support - just create a .atom directory alongside Atom.app (fixes #13164)
  2. Electron/Chromium userdata can now be portable (create electronUserData dir inside .atom - fixes #5502)
  3. Removes the confusing --portable switch that didn't enable portable mode (it copied data)
  4. Checks for a portable .atom folder in expected place before using ATOM_HOME (Comments in #10072)

Flight Manual needs to be updated once this is on stable.

@damieng damieng Clean up portable mode, try local .atom before ATOM_HOME
5a446ff
@damieng damieng referenced this pull request in atom/flight-manual.atom.io Dec 12, 2016
Open

Document enhancements to portable mode and clarify section #309

@damieng damieng merged commit b83bb95 into master Dec 12, 2016

5 checks passed

ci/circleci Your tests passed on CircleCI!
Details
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@damieng damieng deleted the dg-portable-enhancement branch Dec 12, 2016
@johann1301h

Any updates on portable mode for macOS?

@damieng
Member
damieng commented Jan 11, 2017

It shipped in the 1.14 beta yesterday.

@johann1301h

when running beta 1.14.0, the application still creates an .atom folder storing settings, packages etc. Shouldn't this folder exist within the application folder atom.app? (in this case "atom beta.app"). Or perhaps this must be activated after opening the editor?

@damieng
Member
damieng commented Jan 12, 2017 edited

You must manually create a '.atom' folder alongside the Atom.app and then Atom will use that folder instead of ~/.atom,

@johann1301h

Yes, that works. Great! But is there any way to change it so that it lies inside Atom.app?

@damieng
Member
damieng commented Jan 12, 2017

No, and you really don't want to do that as the first time you upgrade Atom you'll blow away all your settings, state and installed packages.

@martinbean
martinbean commented Jan 13, 2017 edited

Apologies for commenting on a beta feature. But if I install Atom.app to ~/Applications, and I’m supposed to create an .atom folder alongside that, how does that make the app portable? Or am I supposed to install Atom.app in another, shared location (i.e. my Dropbox folder)?

I guess I’m just trying to understand the process in making Atom portable. I work across multiple Macs in multiple locations, and a portable version that has my settings, packages, snippets, etc on all machines would be a godsend.

@damieng
Member
damieng commented Jan 13, 2017

Sorry it's a little confusing - the docs for this aren't merged into the flight manual yet because the flight manual is always at stable not beta.

Basically you could always put Atom.app anywhere you wanted but it would look for a .atom folder in your home directory for its settings/extensions etc.

Atom now looks for a .atom folder first alongside the Atom.app on the mac and will use that instead. So to get going simply:

Move Atom.app to somewhere 'portable' like a USB drive or dropbox folder then move your .atom folder from your home folder and place it alongside it. Now you can use them from anywhere.

@martinbean

@damieng Gotcha. Thought that may have been the process. Thanks for clarifying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment