You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
I don’t really stick to one computer to program, and some computers don’t have editors. Currently I use Sublime Text portable, but it would be great if there was a portable version of Atom.
I’m not too sure about any docs, but as far as I know, all settings / installed themes and packages should be stored in the Atom folder instead of the computer itself, so it still works when running from a thumbdrive.
Yeah, we could definitely do this, tweaking Atom to store things locally in a .atom folder instead of the current location should be relatively straightforward.
Yes that's pretty much the criterium for an app to be "portable":
All settings and executables must be contained under a parent folder, and nothing is to be 'installed' to - or required from - anywhere else in the system.
As @D10 says, the purpose being that you could run it from a thumb drive without leaving a trace on the system.
would it be possible to allow the user to set a custom location for the .atom folder? so I could [for example] move it to another drive or to my dropbox/onedrive/cloud storage of choice folder
@MiniFlames I was thinking of that as well. Especially since re-installing packages, themes and personal settings on several different machines (home desktop, private laptop, work laptop etc) would be quite the breeze if one could just move that folder to dropbox or google drive etc, and have a setting in the settings-view to point .atom to that location.
Allowing the location of the .atom folder to be configurable presents a configuration catch-22. The config is stored in the .atom folder, so Atom needs to be able to find it (but how can it find it without reading the config).
The obvious solution would be to permit this location to be overridden via environment variable... would that work?
@joefitzgerald "The obvious solution would be to permit this location to be overridden via environment variable..."
I think it'd be easier to have a configuration file in the root atom directory, one line only, to point to .atom's location, and to assume the default if the file doesn't exist.
However, I also think that so long as .atom is located under the main atom folder by default in the portable version that the simplest solution would be for the user to symlink to it. No extra config, no environment variables to worry about, and transparent to the program.
@IMPinball
Am I missing something?
If you don't want to use the PortableApps menu you can use the self-extracting zip-files directly.
You'll have to remember to update manually though.
It's not so much the menu. I just prefer unzipping a zipball in a few steps through the standard instead of clicking through about 6-10 screens in a pretty useless GUI that does effectively the same thing.
Unless Atom modifies the registry (which it doesn'tappear to, even in a global install), I don't think there would be much advantage to an installer that is just a glorified self-extracting zip file. You might as well use 7-zip for that - it would accomplish the same thing.
I also don't think that there would be a lot of work to make this zip-file portable. IMHO it would be easiest if Atom included a way to change the user path (i.e. the return value of os.homedir()) at the time of initialization. It's something that could also be done via setting the %userprofile% variable in a way local to the application.
+1, only thing keeping me from using atom.
Maybe checking if there is a ".portable_mode" dotfile in atom's directory and saving configs and packages to "./.portable_data/"
Just chiming in with my support for a portable version, I use Atom off of a flash drive for coursework and losing custom settings/packages is less than optimal. I'll try the suggestions put here by others until Atom is truly portable 👍
This is being worked on in #8442, so there is no need to +1 this and in so doing, notifying 52 people. As a result, I'm locking this issue for the time being. Feel free to subscribe to the PR if you're curious about the progress being made.
Activity
batjko commentedon Jul 11, 2014
I haven't tried it yet, but isn't the released zip file a portable version?
bnjmnt4n commentedon Jul 11, 2014
Nope, it stores settings on the current computer itself, so once you switch computers all your settings are gone.
benogle commentedon Jul 11, 2014
Can you link us to some documentation on what makes an app portable? Is that the only difference?
bnjmnt4n commentedon Jul 11, 2014
I’m not too sure about any docs, but as far as I know, all settings / installed themes and packages should be stored in the Atom folder instead of the computer itself, so it still works when running from a thumbdrive.
kevinsawicki commentedon Jul 11, 2014
Yeah, we could definitely do this, tweaking Atom to store things locally in a
.atomfolder instead of the current location should be relatively straightforward.batjko commentedon Jul 11, 2014
Yes that's pretty much the criterium for an app to be "portable":
All settings and executables must be contained under a parent folder, and nothing is to be 'installed' to - or required from - anywhere else in the system.
As @D10 says, the purpose being that you could run it from a thumb drive without leaving a trace on the system.
schodge commentedon Jul 14, 2014
Can you add the link to the zip to the README.md ? Until I found this post I thought a choclately install was my only option.
kevinsawicki commentedon Jul 14, 2014
@schodge Sure thing, added in commit 262ba6b
schodge commentedon Jul 14, 2014
Thanks!
MiniFlames commentedon Jul 15, 2014
would it be possible to allow the user to set a custom location for the .atom folder? so I could [for example] move it to another drive or to my dropbox/onedrive/cloud storage of choice folder
batjko commentedon Jul 15, 2014
@MiniFlames I was thinking of that as well. Especially since re-installing packages, themes and personal settings on several different machines (home desktop, private laptop, work laptop etc) would be quite the breeze if one could just move that folder to dropbox or google drive etc, and have a setting in the settings-view to point .atom to that location.
joefitzgerald commentedon Jul 21, 2014
Allowing the location of the
.atomfolder to be configurable presents a configuration catch-22. The config is stored in the.atomfolder, so Atom needs to be able to find it (but how can it find it without reading the config).The obvious solution would be to permit this location to be overridden via environment variable... would that work?
schodge commentedon Jul 22, 2014
@joefitzgerald "The obvious solution would be to permit this location to be overridden via environment variable..."
I think it'd be easier to have a configuration file in the root atom directory, one line only, to point to
.atom's location, and to assume the default if the file doesn't exist.However, I also think that so long as
.atomis located under the mainatomfolder by default in the portable version that the simplest solution would be for the user to symlink to it. No extra config, no environment variables to worry about, and transparent to the program.97 remaining items
kdmaas commentedon Sep 15, 2015
@IMPinball
Am I missing something?
If you don't want to use the PortableApps menu you can use the self-extracting zip-files directly.
You'll have to remember to update manually though.
dead-claudia commentedon Sep 15, 2015
@kdmaas
It's not so much the menu. I just prefer unzipping a zipball in a few steps through the standard instead of clicking through about 6-10 screens in a pretty
uselessGUI that does effectively the same thing.Unless Atom modifies the registry (which it doesn't appear to, even in a global install), I don't think there would be much advantage to an installer that is just a glorified self-extracting zip file. You might as well use 7-zip for that - it would accomplish the same thing.
I also don't think that there would be a lot of work to make this zip-file portable. IMHO it would be easiest if Atom included a way to change the user path (i.e. the return value of
os.homedir()) at the time of initialization. It's something that could also be done via setting the%userprofile%variable in a way local to the application.dumpsters commentedon Sep 24, 2015
+1, only thing keeping me from using atom.
Maybe checking if there is a ".portable_mode" dotfile in atom's directory and saving configs and packages to "./.portable_data/"
Sisyphuss commentedon Sep 24, 2015
+1
capSAR273 commentedon Sep 28, 2015
Just chiming in with my support for a portable version, I use Atom off of a flash drive for coursework and losing custom settings/packages is less than optimal. I'll try the suggestions put here by others until Atom is truly portable 👍
jamescostian commentedon Oct 3, 2015
👍
Ivan171 commentedon Oct 6, 2015
+1
javiglesias commentedon Oct 6, 2015
+1
bhack commentedon Oct 10, 2015
👍
thomasjo commentedon Oct 10, 2015
This is being worked on in #8442, so there is no need to +1 this and in so doing, notifying 52 people. As a result, I'm locking this issue for the time being. Feel free to subscribe to the PR if you're curious about the progress being made.
anaisbetts commentedon Nov 3, 2015
This is now merged into master as part of #8442 and friends, and will show up in the next release! Thanks for the feedback all
benogle commentedon Nov 3, 2015
💥 🎉