From 9c510794d5b6440b1020ea81790ef7f2aa87212a Mon Sep 17 00:00:00 2001 From: Konstantinos Argyriou Date: Sun, 5 Sep 2021 02:13:11 +0300 Subject: [PATCH] Done --- CMakeLists.txt | 14 ++------------ config/config.conf | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0801910..137286e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,35 +16,25 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}") file(MAKE_DIRECTORY /home/$ENV{USER}/.local/share/file_sorter/) -message("/home/$ENV{USER}/.local/share/file_sorter/ OK") + file(MAKE_DIRECTORY /home/$ENV{USER}/.local/share/file_sorter/config/) -message("/home/$ENV{USER}/.local/share/file_sorter/config/ OK") file(MAKE_DIRECTORY /home/$ENV{USER}/default_sorter_path/) -message("/home/$ENV{USER}/default_sorter_path/ OK") file(MAKE_DIRECTORY config/) -message("config/ OK") file(MAKE_DIRECTORY service/) -message("service/ OK") file(MAKE_DIRECTORY autostart/) -message("autostart/ OK") if (EXISTS /home/$ENV{USER}/.config/systemd/) - message("/home/$ENV{USER}/.config/systemd/ OK") if (EXISTS /home/$ENV{USER}/.config/systemd/user/) - message("/home/$ENV{USER}/.config/systemd/user/ OK") else () file(MAKE_DIRECTORY /home/$ENV{USER}/.config/systemd/user/) - message("/home/$ENV{USER}/.config/systemd/user/ OK") endif () else () file(MAKE_DIRECTORY /home/$ENV{USER}/.config/systemd/) - message("/home/$ENV{USER}/.config/systemd/ OK") file(MAKE_DIRECTORY /home/$ENV{USER}/.config/systemd/user/) - message("/home/$ENV{USER}/.config/systemd/user/ OK") endif () file(WRITE config/config.conf @@ -53,7 +43,7 @@ file(WRITE config/config.conf parse_interval\ 5000\n debug_log\ 0\n default_dir_path\ /home/$ENV{USER}/default_sorter_path/\n - enable_default_path 1\n + enable_default_path\ 1\n \n [check]\n \n diff --git a/config/config.conf b/config/config.conf index ad2bf37..0abfd96 100644 --- a/config/config.conf +++ b/config/config.conf @@ -3,7 +3,7 @@ check_interval 3000 parse_interval 5000 debug_log 0 default_dir_path /home/rounnus/default_sorter_path/ -enable_default_path1 +enable_default_path 1 [check]