diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-03 17:48:07 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-03 17:48:07 +0200 |
| commit | 9486a230c74e8873621fdf64a33adaaa660762e3 (patch) | |
| tree | 0f0ee90736428b6b1bed1198e3e3db9be07c0dc3 /src/main.cpp | |
| parent | 6f3b004199a6b1bb0a8f5431d677ab926bdf19f3 (diff) | |
Log to the instance folder
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index a6f2469c..a437430f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,6 +3,7 @@ #include "Compositor.hpp" #include "config/ConfigManager.hpp" #include "init/initHelpers.hpp" +#include <iostream> // I am a bad bad boy and have used some global vars here, // just for this file @@ -21,19 +22,17 @@ int main(int argc, char** argv) { system("mkdir -p /tmp/hypr"); - Debug::init(); - if (!ignoreSudo) { if (Init::isSudo()) { - Debug::log(CRIT, "Hyprland shall not be run as the root user. If you really want to, use the --i-am-really-stupid flag."); - return 1; + std::cout << "Hyprland shall not be run as the root user. If you really want to, use the --i-am-really-stupid flag.\n"; + return 1; } } else { - Debug::log(WARN, "Running with ignored root checks, I surely hope you know what you're doing."); + std::cout << "Running with ignored root checks, I surely hope you know what you're doing.\n"; sleep(1); } - Debug::log(LOG, "Welcome to Hyprland!"); + std::cout << "Welcome to Hyprland!\n"; // let's init the compositor. // it initializes basic Wayland stuff in the constructor. |
