mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Override default userData according to app's name
This commit is contained in:
@@ -90,6 +90,9 @@ process.once 'BIND_DONE', ->
|
||||
else
|
||||
app.setDesktopName '#{app.getName()}.desktop'
|
||||
|
||||
# Set the user data path according to application's name.
|
||||
app.setPath 'userData', path.join(app.getPath('appData'), app.getName())
|
||||
|
||||
# Load the chrome extension support.
|
||||
require './chrome-extension.js'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user