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

Atom 'portable' problem #4074

Closed
Closed

Description

@ian4hu

I hacked the Atom's index.js like that https://github.com/hu2008yinxiang/atom/commit/47fe8f58a99998bc2ae08e810c7d9dbad0f2dda8#diff-96396047159bb0c3de09c166d18f028c, every thing works fine but the seti ui theme logged some error in the console

GET atom://seti-ui/stylesheets/_fonts/icomoon.woff net::ERR_FILE_NOT_FOUND d:\Program Files\Atom\resources\app\node_modules\space-pen\vendor\jquery.js:6354
Failed to locate workspace file mapped to URL file:///d:/Program%20Files/Atom/.atom/init.coffee from source map file:///d:/Program%20Files/Atom/.atom/init.coffee
GET atom://seti-ui/stylesheets/_fonts/icomoon.ttf net::ERR_FILE_NOT_FOUND atom://seti-ui/stylesheets/_fonts/icomoon.ttf:1
GET atom://seti-ui/stylesheets/_fonts/icomoon.svg net::ERR_FILE_NOT_FOUND 

Activity

  1. lee-dohm commented on Nov 7, 2014

    @lee-dohm
    Contributor

    I'm not sure what action is meant to be taken from this Issue. Can you give some more information?

  2. ian4hu commented on Nov 8, 2014

    @ian4hu
    Author

    all my tests is on Windows version of atom at latest release.
    I wan to run atom in my usb portable drive with my favorate packages and themes (with the .atom folder in installation path not in my $HOME or %USERPFROFILE% ),
    so I edit the index.js like that https://github.com/hu2008yinxiang/atom/commit/47fe8f58a99998bc2ae08e810c7d9dbad0f2dda8#diff-96396047159bb0c3de09c166d18f028c and the code works fine , but then found the web font of the seti-ui of @jesseweed https://github.com/jesseweed/seti-ui theme cant be loaded correctly (the file type icon in tree view and tab tag not shown normally ) , and I found the error message in atom's developer console. but when I use it on my original computer ( with .atom folder both in installation path and %USERPROFILE% ), the error message disappeared, when I rename the .atom folder in %USERPROFILE% the error message appeared again and the file type icon not show normally again.

    It seems that the handler of atom:// protocol handler cant locate the .atom folder in installation path correctly even I hacked the %USERPROFILE% for it and it's search path is still the C:\Users\MyUsername.atom\packages, but that shouldn't be. @lee-dohm

  3. ian4hu commented on Nov 8, 2014

    @ian4hu
    Author

    @lee-dohm the intent of the code that I had added is:

    1. detect is the .atom folder appeared in the installation path, Yes goto step 2. No, do nothing and continue booting atom
    2. modify the process environment vars set the installation path as HOME (for linux and mac ) and USERPROFILE ( for windows ), to cheat the atom, make atom use the installation path as my home path and use the .atom folder in installation path as my configuration store path.
  4. ian4hu commented on Nov 8, 2014

    @ian4hu
    Author

    @lee-dohm
    I also tried to hack src/browser/atom-protocol-handler.js and add the path/to/atom/.atom/packages into the AtomProtocolHandler's loadPaths, but end with no effect ....

  5. lee-dohm commented on Nov 8, 2014

    @lee-dohm
    Contributor

    I understand that you are trying to create a portable version of Atom. You are correct that Atom does not currently support this. We already have an enhancement request at #2939. If you want help or suggestions on how to modify Atom in order to make it portable, you might get more help on Atom's Discuss message board.

  6. benogle commented on Nov 10, 2014

    @benogle
    Contributor

    Closing this as it does not to appear to be an issue with atom, and the enhancement request is the same as #2939.

  7. lock commented on Jan 25, 2019

    @lock

    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!

  8. locked as resolved and limited conversation to collaborators on Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions