Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't find correct Trash folder on NixOS #95

Open
johnpyp opened this issue May 31, 2020 · 0 comments
Open

Doesn't find correct Trash folder on NixOS #95

johnpyp opened this issue May 31, 2020 · 0 comments

Comments

@johnpyp
Copy link

johnpyp commented May 31, 2020

I've been trying to use trash via coc-explorer, but it doesn't seem to find the the correct Trash folder. I've investigated xdgTrashdir a bit to see if it was the cause, but xdgTrashdir() with no arguments seems to find my home trash dir fine (/home/$USER/.local/share/Trash).

The issue here is that according to trash my Trash folder is supposed to be /nix/store/.Trash-1000, which is not correct. NixOS uses a weird filesystem, and I'm not too familiar with why this is happening, but my best guess is that the mount mapping logic finds /nix/store as the mount the target directory $topdir according to the spec.

This is not the expected behavior, as /nix/store resides on the same filesystem and mount that my home folder does. I'm not familiar with how the mount points are resolved, so I'm not sure exactly how to fix this, but I'd gladly help with anything else I can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants