diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-03-02 18:45:15 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-03-02 18:45:15 +0530 |
commit | ff2bfff386850e1f9681194944b33eca945c3424 (patch) | |
tree | dc66dbd5a62b2c37fae661be29803df45ea36d19 /src | |
parent | 62d1ff278f1059773d66da6366d632606354c0ef (diff) | |
download | nnn-ff2bfff386850e1f9681194944b33eca945c3424.tar.gz |
trash dir is ~/.local/trash
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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; |