FUSE filesystem hide from nautilus

2019-09-01 00:15发布

问题:

I have written a FUSE driver for linux, and when I mount it I get an entry in the nautilus sidebar. I do not want this - the unmount button doesnt even work. I would like to hide this entry in the nautilus sidebar for my mounted fuse filesystem. I dont want to add it to the fstab because running it as root opens security holes. Is there anything I can add to the options line or the code itself to prevent it from showing in nautilus?

回答1:

I believe Nautilus will only show those sidebar entries if your mount point is under /media (the designated path for "removable media" under the FHS).

Using a mount point under /mnt should make Nautilus ignore the filesystem.