summarylogtreecommitdiffstats
path: root/rootless.patch
diff options
context:
space:
mode:
authorMatthias Lisin2019-03-02 03:23:10 +0100
committerMatthias Lisin2019-03-02 03:32:34 +0100
commitc2a7ed3a4f4658dc633e01788c048a521f3c7d2f (patch)
tree7cf60314507b328e20b5a71560162a60b7f3acdf /rootless.patch
parente7f18b6e98e3aa384791f7a4a62f267bbfd6290c (diff)
downloadaur-c2a7ed3a4f4658dc633e01788c048a521f3c7d2f.tar.gz
upgpkg: ubports-installer-git 2
- Add android-udev to depends. - Update electron2 dependency to electron. (3) - Add jq to makedepends. - Use jq to patch json file (system electron dir and version). - Expand tabs to spaces. Lel. - Install desktop file. - Uninstall useless npm packages. - Remove electron-sudo and make app rootless.
Diffstat (limited to 'rootless.patch')
-rw-r--r--rootless.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/rootless.patch b/rootless.patch
new file mode 100644
index 000000000000..9a17aa176e02
--- /dev/null
+++ b/rootless.patch
@@ -0,0 +1,21 @@
+diff -ura package.orig/src/utils.js package.new/src/utils.js
+--- package.orig/src/utils.js 2019-03-02 03:00:07.393462552 +0100
++++ package.new/src/utils.js 2019-03-02 02:59:53.770016930 +0100
+@@ -17,7 +17,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;
+@@ -387,8 +386,7 @@
+ }
+
+ var needRoot = () => {
+- if ((os.platform() === "win32") || isSnap()) return false;
+- return !process.env.SUDO_UID
++ return false
+ }
+
+ var ensureRoot = (m) => {