Compare commits

...

No commits in common. "cd509a92f3d7a0d92a883712d98173c8a04eb04e" and "495431f58767115018015ac9defc0ad25315eaa7" have entirely different histories.

4 changed files with 1 additions and 12 deletions

1
.gitignore vendored
View file

@ -1 +0,0 @@
builddir

View file

@ -2,7 +2,6 @@
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <unistd.h>
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;

View file

@ -1,3 +1,3 @@
project('dotty', 'cpp')
executable('dotty', 'src/main.cpp', dependencies: [])
executable('dotty', 'main.cpp', dependencies: [])

View file

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