summarylogtreecommitdiffstats
path: root/injector_index.js.patch
blob: 3f0676bf63a634033b60e385b96a4f5f281dba3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- ./powercord/injectors/index.js	2022-05-28 23:52:39.121011129 +0200
+++ ./index.js.patched	2022-05-28 23:51:44.530980252 +0200
@@ -1,3 +1,10 @@
+#!/usr/bin/env node
+
+if (process.env.USER != "root") {
+  console.log("You need to run powercord as root.");
+  process.exit(1);
+}
+
 require('./elevate');
 require('./env_check')(); // Perform checks
 require('../polyfills'); // And then do stuff