Call addToRegisry from installMenu

This commit is contained in:
Kevin Sawicki
2014-11-18 11:10:12 -08:00
parent cc785de974
commit 7e34e8c4ed

View File

@@ -54,11 +54,11 @@ installContextMenu = (callback) ->
installMenu = (keyPath, callback) ->
args = [keyPath, '/ve', '/d', 'Open with Atom']
spawnReg args, ->
addToRegistry args, ->
args = [keyPath, '/v', 'Icon', '/d', process.execPath]
spawnReg args, ->
addToRegistry args, ->
args = ["#{keyPath}\\command", '/ve', '/d', process.execPath]
spawnReg(args, callback)
addToRegistry(args, callback)
installMenu fileKeyPath, ->
installMenu directoryKeyPath, ->