mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Use process.resourcesPath to find Atom shell root
This commit is contained in:
@@ -142,7 +142,7 @@ registerBuiltins = (devMode) ->
|
||||
else
|
||||
cache.builtins.atom = path.join(cache.resourcePath, 'exports', 'atom.js')
|
||||
|
||||
atomShellRoot = path.resolve(window.location.pathname, '..', '..', '..', 'atom')
|
||||
atomShellRoot = path.join(process.resourcesPath, 'atom')
|
||||
|
||||
commonRoot = path.join(atomShellRoot, 'common', 'api', 'lib')
|
||||
commonBuiltins = ['callbacks-registry', 'clipboard', 'crash-reporter', 'screen', 'shell']
|
||||
|
||||
Reference in New Issue
Block a user