Atom will not launch from a USB flash drive when setting ATOM_HOME
#6452
Comments
What was your current working directory when you ran this script and you got the error? |
Should be |
You are setting the environment variable wrong. When you surround the path name with " windows will interpret that as being part of the name. So essentially you set the path to:
Try using this instead:
I have to say that the error message from mkdirp is really bad though. Btw you can use %~dp0 to get the current working directory, might be useful if you are running from a usb drive where the drive letter might change. Example:
|
CC @damieng to close 🍡 |
Additionally it should be Please re-open if this is still a problem with Atom 1.7 or later. |
@damieng - I don't think you can set environment variables in Windows 7 if you aren't the admin. Can we look for a portable solution that is self-contained on the USB that would work for both admin and non-admin Windows 7 users? |
The SET command does not require admin privileges as it is not permanent - it just applies to the current command Window. It therefore works for both admin and non-admin. |
Thanks for the quick response. According to my research you get prompted for the Admin credentials. See I could be wrong / misunderstanding... On Jun 23, 2016 2:11 PM, "Damien Guard" notifications@github.com wrote:
|
That is talking about using the UI to set a permanent environment variable. That would require admin permissions if setting machine-wide or may require admin permissions for user-wide if your group policy has been set for that. It would also not make sense in the context of a portable solution. This solution is talking about the |
Ok, great news! I'll give it a go once I am in at a PC where I am a non-admin. I'm also curious about getting a package such as Atom-Runner working in a portable setting. Any tips on that? |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks! |
Most of the details can be found at this post:
https://discuss.atom.io/t/starting-atom-via-command-line-does-not-launch-it-correctly/16279/2
I recently tried to run atom portable. I would like to keep all my themes and packages on the drive as well, so I created a .atom folder on my flash drive using
md .atom
. After that, I extracted the latest zip distribution of Atom into anAtom
folder on my flash drive. To setATOM_HOME
and launch atom, I used the following script:When trying to run this script, I got
The rest of the stack trace can be found at the above link. Oddly, after I
REM
ed out theset ATOM_HOME= "E:/.atom"
, atom launched fine from the flash drive. Is there anyway this can be fixed?The text was updated successfully, but these errors were encountered: