{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/8442","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/8442/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/8442/comments","events_url":"https://api.github.com/repos/atom/atom/issues/8442/events","html_url":"https://github.com/atom/atom/pull/8442","id":101912568,"number":8442,"title":"Enable Portable Mode","user":{"login":"paulcbetts","id":1396,"avatar_url":"https://avatars.githubusercontent.com/u/1396?v=3","gravatar_id":"","url":"https://api.github.com/users/paulcbetts","html_url":"https://github.com/paulcbetts","followers_url":"https://api.github.com/users/paulcbetts/followers","following_url":"https://api.github.com/users/paulcbetts/following{/other_user}","gists_url":"https://api.github.com/users/paulcbetts/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcbetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcbetts/subscriptions","organizations_url":"https://api.github.com/users/paulcbetts/orgs","repos_url":"https://api.github.com/users/paulcbetts/repos","events_url":"https://api.github.com/users/paulcbetts/events{/privacy}","received_events_url":"https://api.github.com/users/paulcbetts/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/windows","name":"windows","color":"c7def8"}],"state":"closed","locked":false,"assignee":{"login":"damieng","id":118951,"avatar_url":"https://avatars.githubusercontent.com/u/118951?v=3","gravatar_id":"","url":"https://api.github.com/users/damieng","html_url":"https://github.com/damieng","followers_url":"https://api.github.com/users/damieng/followers","following_url":"https://api.github.com/users/damieng/following{/other_user}","gists_url":"https://api.github.com/users/damieng/gists{/gist_id}","starred_url":"https://api.github.com/users/damieng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damieng/subscriptions","organizations_url":"https://api.github.com/users/damieng/orgs","repos_url":"https://api.github.com/users/damieng/repos","events_url":"https://api.github.com/users/damieng/events{/privacy}","received_events_url":"https://api.github.com/users/damieng/received_events","type":"User","site_admin":false},"milestone":null,"comments":83,"created_at":"2015-08-19T14:54:00Z","updated_at":"2016-04-14T01:56:11Z","closed_at":"2015-11-03T20:49:55Z","pull_request":{"url":"https://api.github.com/repos/atom/atom/pulls/8442","html_url":"https://github.com/atom/atom/pull/8442","diff_url":"https://github.com/atom/atom/pull/8442.diff","patch_url":"https://github.com/atom/atom/pull/8442.patch"},"body":"This PR sets the default ATOM_HOME to be relative to `atom.exe`, if the following cases are true:\r\n\r\n1. We're not in DevMode\r\n1. We're on Windows\r\n1. The EXE path is not in the normal installed location\r\n\r\nThis allows users to take the entire Atom folder and use it as a \"Portable\" application (i.e. portableapps.com)\r\n\r\nFixes #2939\r\n\r\n## TODO:\r\n\r\n- [x] Make sure this actually works\r\n- [ ] ~~Add `.alwaysportable` directive~~ (Gonna see if people want this or not)\r\n- [ ] Code Review"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/209720137","html_url":"https://github.com/atom/atom/pull/8442#issuecomment-209720137","issue_url":"https://api.github.com/repos/atom/atom/issues/8442","id":209720137,"user":{"login":"dogancelik","id":486818,"avatar_url":"https://avatars.githubusercontent.com/u/486818?v=3","gravatar_id":"","url":"https://api.github.com/users/dogancelik","html_url":"https://github.com/dogancelik","followers_url":"https://api.github.com/users/dogancelik/followers","following_url":"https://api.github.com/users/dogancelik/following{/other_user}","gists_url":"https://api.github.com/users/dogancelik/gists{/gist_id}","starred_url":"https://api.github.com/users/dogancelik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dogancelik/subscriptions","organizations_url":"https://api.github.com/users/dogancelik/orgs","repos_url":"https://api.github.com/users/dogancelik/repos","events_url":"https://api.github.com/users/dogancelik/events{/privacy}","received_events_url":"https://api.github.com/users/dogancelik/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T01:56:10Z","updated_at":"2016-04-14T01:56:10Z","body":"* I store Atom in `E:\\Portable\\Atom`\r\n* I start `E:\\Portable\\Atom\\Atom.exe --portable`\r\n* It creates `E:\\Portable\\.atom`\r\n\r\n**That's not what Portable means.** Portable means it would store `.atom` inside the program folder where `Atom.exe` resides.\r\n\r\nIf you try to move your Atom folder, you have to move `.atom` too every time you need to move Atom to somewhere else. And that's not handy (or portable).\r\n\r\nThat's like having to hold a suitcase but you also have to hold another one because they love each other and can't do without the other. So wearing a backpack instead (Portable mode) is much better (Atom configuration folder inside Atom program folder) and less burden on [Portable people](http://www.imagebase.net/var/albums/People/IMG_9288%20copy.jpg).\r\n\r\nWhat happens if I put all Atom files in root `E:\\`, is Atom going to create a folder `E:\\..\\.atom` (basically inside *My Computer*)?\r\n\r\n--\r\n\r\nUsing a file `portablemode` to activate Portable mode is a common practice among Windows developers. Many popular programs in Windows use this convention. Examples: Foobar2000, TeraCopy, [ShareX](https://github.com/ShareX/ShareX), [QuiteRSS](https://github.com/QuiteRSS/quiterss), [RetroShare](https://github.com/RetroShare/RetroShare) etc."}}