Skip to content

Commit

Permalink
Done
Browse files Browse the repository at this point in the history
  • Loading branch information
constarg committed Sep 4, 2021
1 parent 1f78235 commit 9c51079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 9c51079

Please sign in to comment.