mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-01 04:13:48 -07:00
remove global var
This commit is contained in:
@@ -5,10 +5,6 @@
|
|||||||
#include "init/initHelpers.hpp"
|
#include "init/initHelpers.hpp"
|
||||||
#include <iostream>
|
#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) {
|
int main(int argc, char** argv) {
|
||||||
|
|
||||||
if (!getenv("XDG_RUNTIME_DIR"))
|
if (!getenv("XDG_RUNTIME_DIR"))
|
||||||
@@ -24,6 +20,7 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
// parse some args
|
// parse some args
|
||||||
std::string configPath;
|
std::string configPath;
|
||||||
|
bool ignoreSudo = false;
|
||||||
for (int i = 1; i < argc; ++i) {
|
for (int i = 1; i < argc; ++i) {
|
||||||
if (!strcmp(argv[i], "--i-am-really-stupid"))
|
if (!strcmp(argv[i], "--i-am-really-stupid"))
|
||||||
ignoreSudo = true;
|
ignoreSudo = true;
|
||||||
|
Reference in New Issue
Block a user