aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;