Comments (6)
Same issues here.
- recently-used.xbel and monitors.xml don't work when bind-mount by the module. But in general, mounting single files cause a lot of issues because programs tried to make copies for example so I am not really surprised.
- .local/share/Trash does not work with nautilus at all when using a symbolic link: files does not appear in trash and I can't put new files in trash. When using bind-mount, I can see files inside ~/.local/share/Trash inside the nautilus bin, but I can't add new files in the bin from nautilus. I can't figure why but it is very frustating…
- .config/gnome-initial-setup-done works, but is actually useless because gnome do not use this file to remove Welcome to GNOME popup but a dconf key the good solution is adding this inside home-manager :
dconf.settings = {
# Désactiver la popup de bienvenue de Gnome
"org/gnome/shell" = {
welcome-dialog-last-shown-version = "999"; # prevent popup until gnome version 999 :)
};
};
from impermanence.
Additionally, Trash support in Nautilus seems broken when bindmounting the
.local/share/Trash
directory.
The FreeDesktop Specification mentions that the ~/.local/share/Trash
directory mustn't be a symbolic link in order to be used as intended. To preserve it's functionality, I've been using this workaround instead of persisting that directory using impermanence
Also note that this is not a GNOME-specific issue
(user.homeConfig
--> home-manager.users.$USER
)
from impermanence.
@maydayv7 thanks for sharing your workaround. I am wondering is this also working for you when deleting files within bind mounted directories (in Home) ? Because I believe I have read somewhere that nautilus (or more specifically gvfs) will not move files across different filesystems to put them into trash. I would have thought that then nautilus will just create .Trash dirs inside each bindmount root but that does not seem to be the case atleast on my machine. I have tried different file managers and only dolphin does that described behaviour.
from impermanence.
I am wondering is this also working for you when deleting files within bind mounted directories (in Home) ?
This is not the same issue as above
I would have thought that then nautilus will just create .Trash dirs inside each bindmount root
Yes, it will try creating a .Trash
folder in the topmost mount directory, and might fail due to insufficient permissions. Try using gio trash /path/to/file/to/delete
and see if it throws an error.
from impermanence.
It seems like glib has a Bug which is why trashing files from within bind mounts is not working.
This seems to be the related issue https://gitlab.gnome.org/GNOME/glib/-/issues/1885
from impermanence.
Oh okay, in my case I mount ZFS datasets to something like /data
and trashing works perfectly with any gvfs
-based file managers (once permissions are sorted)
from impermanence.
Related Issues (20)
- Can't rebuild system - getting attributes of path: Permission denied HOT 6
- nixos: Files mounted before fstab mounts (directories) HOT 2
- feature request: add wildcard matching HOT 3
- Any good way to handle `/etc/localtime`? (Or: "How to persist symlinks as symlinks?") HOT 2
- Fails with mkdir: cannot create directory: No such file or directory HOT 1
- Add `/etc/nixos/*.nix` to the example ?
- Regression after using escapeSystemdPath HOT 3
- `user.*.directories` assertion is displaying incorrectly`
- Issues with bindfs: no entry in /etc/mtab HOT 1
- Persisting Steam breaks any game within it and also fails shutdown HOT 4
- Boot does not revoke chmod permissions HOT 1
- [REQUEST] Declare `something.impermanence.enable` option for integration with other modules and easy way to disable impermanence HOT 1
- Handle bind mount of directory that already has content HOT 2
- `nixos-rebuild` fails due to the symlink, Impermanence created
- Best practice to split configuration HOT 1
- missing `x-gvfs-hidein` in mount
- Strategies to deal with `renameat(3)` on persisted files HOT 1
- Infinite recursion error when persisting anything in /var/ HOT 1
- Symlinks created via the home-manager module are broken HOT 1
- The importance of persisting `/var/lib/nixos` is not documented HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from impermanence.