Closed nathansobo closed 7 years ago
Could this also be added to Windows? I need to run something async with admin privileges.
@MickdeGraaf Yes! We've decided to create a new module instead of modifying runas
. See https://github.com/atom/spawn-as-admin.
This PR is intended as part of a solution to https://github.com/atom/atom/issues/15267. The plan is to run
dd
via this module as we currently do inpathwatcher
, but instead of passing the contents of the file to be written synchronously, we'll obtain a file descriptor and pass it to a new method save method onsuperstring
's buffer.This PR also removes CoffeeScript, Grunt, and Jasmine dependencies.
A new test is added using Mocha, but the test prompts for a password, so isn't really ideal for CI.
/cc @maxbrunsfeld