Pi66

pind
Simple Rust hotkey daemon.
git clone https://git.pi66.xyz/pind

← back to log

chg: change the config file path.

author: pi66
date: 2025-09-04 21:07
hash: 58fdc40cafe2339e2872165036184c53cad884a6

Diffstat:

M

Makefile
6 +++++++++++++++---------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/Makefile b/Makefile
index 6fe2e71..516f5e5 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@

 BUILD_DIR   = target/release
 INSTALL_DIR = /usr/local/bin
-CONFIG_DIR  = /etc/pind
+CONFIG_DIR  = ~/.config/pind 

 build:
    cargo build --release
@@ -12,8 +12,8 @@ install: build
    sudo cp ./pindc $(INSTALL_DIR)/
    sudo chmod 755 $(INSTALL_DIR)/pindc
    sudo chmod 755 $(INSTALL_DIR)/pindd
-   sudo mkdir $(CONFIG_DIR)
-   sudo cp pindrc $(CONFIG_DIR)
+   sudo mkdir -p $(CONFIG_DIR)
+   sudo cp -n pindrc $(CONFIG_DIR)

 uninstall:
    sudo rm /usr/local/bin/pindd