aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-11-30 13:33:21 +0000
committervaxerski <[email protected]>2022-11-30 13:33:21 +0000
commit869f0a023888b6c9a214814c56192e922542c970 (patch)
tree22e72699b6949827ee5544d4767ecec990dd53bb
parentff4ea1a13a297b55d88bffa25a3f3dec17234c40 (diff)
downloadHyprland-869f0a023888b6c9a214814c56192e922542c970.tar.gz
Hyprland-869f0a023888b6c9a214814c56192e922542c970.zip
remove global var
-rw-r--r--src/main.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9f34c088..77aece7a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -5,10 +5,6 @@
#include "init/initHelpers.hpp"
#include <iostream>
-// I am a bad bad boy and have used some global vars here,
-// just for this file
-bool ignoreSudo = false;
-
int main(int argc, char** argv) {
if (!getenv("XDG_RUNTIME_DIR"))
@@ -24,6 +20,7 @@ int main(int argc, char** argv) {
// parse some args
std::string configPath;
+ bool ignoreSudo = false;
for (int i = 1; i < argc; ++i) {
if (!strcmp(argv[i], "--i-am-really-stupid"))
ignoreSudo = true;