diff options
author | Michael Hansen | 2019-07-07 14:50:46 -0700 |
---|---|---|
committer | Michael Hansen | 2019-07-07 14:50:46 -0700 |
commit | 8f1d4f52cf99ca6b73f04d3a961f5858e23500c5 (patch) | |
tree | 60c0dea0e4524b6d41981d0424b8c70d1b861597 /code-git.js | |
parent | 25d9f6995c7388fb36a42eee6974737a56f9d88b (diff) | |
download | aur-8f1d4f52cf99ca6b73f04d3a961f5858e23500c5.tar.gz |
Switch to electron 4 and allow mem_limit to be overridden by environment variable
Diffstat (limited to 'code-git.js')
-rw-r--r-- | code-git.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/code-git.js b/code-git.js index 639fde578477..1b903db6365f 100644 --- a/code-git.js +++ b/code-git.js @@ -4,6 +4,12 @@ const name = 'code-git'; const app = require('electron').app; const path = require('path'); +const fs = require("fs"); + +// Change command name. +const fd = fs.openSync("/proc/self/comm", fs.constants.O_WRONLY); +fs.writeSync(fd, name); +fs.closeSync(fd); // Remove first command line argument (/usr/lib/code-git/code-git.js). - We call the CLI file first process.argv.splice(0, 1); |