summarylogtreecommitdiffstats
path: root/rootless.patch
diff options
context:
space:
mode:
Diffstat (limited to 'rootless.patch')
-rw-r--r--rootless.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/rootless.patch b/rootless.patch
deleted file mode 100644
index b6cc60a91669..000000000000
--- a/rootless.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-diff -ura package.orig/src/utils.js package.new/src/utils.js
---- package.orig/src/utils.js 2019-03-15 18:59:19.000000000 +0800
-+++ package.new/src/utils.js 2019-03-20 14:42:19.202514790 +0800
-@@ -16,7 +16,6 @@
- const tmp = require('tmp');
- const exec = require('child_process').exec;
- const cp = require('child_process');
--const sudo = require('electron-sudo');
- const winston = require('winston');
- const getos = require('getos');
- const commandExistsSync = require('command-exists').sync;
-@@ -375,14 +374,7 @@
- }
-
- var needRoot = () => {
-- if (
-- (os.platform() === "win32") ||
-- isSnap() ||
-- !commandExistsSync("sudo") ||
-- global.installProperties.noRoot ||
-- global.installProperties.simulate
-- ) return false;
-- else return !process.env.SUDO_UID
-+ return false
- }
-
- var ensureRoot = (m) => {