Create backend to implicitly mount when accessed



Hi,

I'm the one proposing the previously mentioned encrypted folder backend.
In order to achieve this, I would like to be able to mount an encrypted
folder whenever the user accesses the mountpoint. This will create a
seamless experience, where the encrypted folder can be treated much the
same as a regular folder.

So, is it possible to do this from a gvfs backend? Specifically, if a
backend knows the mountpoints ahead of time, can it mount something
whenever these mountpoints are accessed (e.g. when an application tries
to enumerate over the mountpoint, or when a GFile object is requested
from a URI inside the mountpoint)?

Looking at the doc, it would appear the mount spec has something to do
with this. It mentions about registering a prefix, but doesn't specify
any rules on it. So, is it possible to use the path as the prefix
registered (e.g. "/home/foo/mountpoint/"), and would this help achieve
that goal?

Thanks,
Sam Bull

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]