diff --git a/.gitignore b/.gitignore deleted file mode 100644 index a57078d..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -builddir diff --git a/src/main.cpp b/main.cpp similarity index 77% rename from src/main.cpp rename to main.cpp index b3744b0..dbf8f8e 100644 --- a/src/main.cpp +++ b/main.cpp @@ -2,7 +2,6 @@ #include #include #include -#include using namespace std; using namespace std::filesystem; @@ -15,11 +14,6 @@ const path PACMAN_HOOKS = "/etc/pacman.d/hooks"; // int main(int argc, char **argv) { - if (geteuid() != 0) { - cout << "Sudo permissions are required to run this application"; - return 0; - } - if (!exists(PACMAN_HOOKS)) { create_directory(PACMAN_HOOKS); cout << "Directory created: " << PACMAN_HOOKS << endl; diff --git a/meson.build b/meson.build index 34c75cc..5da9583 100644 --- a/meson.build +++ b/meson.build @@ -1,3 +1,3 @@ project('dotty', 'cpp') -executable('dotty', 'src/main.cpp', dependencies: []) +executable('dotty', 'main.cpp', dependencies: []) diff --git a/mise.toml b/mise.toml index bc94a6c..c794c76 100644 --- a/mise.toml +++ b/mise.toml @@ -8,7 +8,3 @@ run = "meson setup --reconfigure builddir" [tasks.compile] dir = "{{ cwd }}/builddir" run = "meson compile" - -[tasks.run] -dir = "{{ cwd }}/builddir" -run = "chmod +x dotty; sudo ./dotty"