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

nixos: add an allowTrash option #243

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bluelinden
Copy link

@bluelinden bluelinden commented Dec 19, 2024

I ran into this issue about half an hour ago and tried my hand at fixing it. This resolves parts of #147.

Newer versions of glib's trash implementation support an x-gvfs-trash mount option on bind mounts, that overrides the "internal filesystem" error that some people in #147 have been facing.

This error is basically glib refusing to put things into a bind-mounted trash folder. I have added an option to the NixOS module that fixes this error by default, and is opt-out, but I would be fine making it opt-in if that fits the goals of the project better. I've confirmed that this works on my machine, but if people could test it out on theirs that would be great!

Please let me know if I've missed anything - I'm still relatively new to open-source and I am very tired right now :)

Relevant merge requests:
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4155
https://gitlab.gnome.org/GNOME/gvfs/-/merge_requests/222

Relevant issues:
#147
https://gitlab.gnome.org/GNOME/glib/-/issues/1885

@bluelinden bluelinden changed the title Add an allowTrash option set to true by default to the NixOS module nixos: add an allowTrash option set to true by default Dec 19, 2024
@bluelinden
Copy link
Author

bluelinden commented Dec 19, 2024

Hm, it may be better if this is set to false by default, because it leaves little .Trash-[UID]s at every mountpoint.

@bluelinden bluelinden changed the title nixos: add an allowTrash option set to true by default nixos: add an allowTrash option Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant