remove global var

This commit is contained in:
vaxerski 2022-11-30 13:33:21 +00:00
parent ff4ea1a13a
commit 869f0a0238
1 changed files with 1 additions and 4 deletions

View File

@ -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;