aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-02 18:45:15 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-02 18:45:15 +0530
commitff2bfff386850e1f9681194944b33eca945c3424 (patch)
treedc66dbd5a62b2c37fae661be29803df45ea36d19 /src
parent62d1ff278f1059773d66da6366d632606354c0ef (diff)
downloadnnn-ff2bfff386850e1f9681194944b33eca945c3424.tar.gz
trash dir is ~/.local/trash
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 60d5dc5..d053328 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4125,13 +4125,7 @@ int main(int argc, char *argv[])
/* Create trash dir if missing */
g_tmpfplen = xstrlcpy(g_trash, home, PATH_MAX);
- g_tmpfplen += xstrlcpy(g_trash + g_tmpfplen - 1,
- "/.local/share/nnn", PATH_MAX - g_tmpfplen);
- DPRINTF_S(g_trash);
- if (!createdir(g_trash, 0777))
- return 1;
-
- xstrlcpy(g_trash + g_tmpfplen - 2, "/trash", PATH_MAX - g_tmpfplen);
+ xstrlcpy(g_trash + g_tmpfplen - 1, "/.local/trash", PATH_MAX - g_tmpfplen);
DPRINTF_S(g_trash);
if (!createdir(g_trash, 0777))
return 1;