-
Notifications
You must be signed in to change notification settings - Fork 58
Description
Let us use this issue for a general discussion on how to solve the storage access. I know some of you want to keep storing on the local file system, others need to sync their templates.
Here is a proposal. Please play with it in your heads, to find edges cases where it might fail.
The Thunderbird Team is thinking about creating a general storage virtual file system API (VFS API), similar to the cloudFile API, where other developers can create storage providers for seafile, nextcloud, Amazon, box and what not. These providers can expose one or more folders from their supported backend as a virtual file system, and add-ons can read and write inside that VFS.
One of the providers for the VFS API could also be a local-file-system provider.
The quicktext config UI will present a list with all installed providers for the user to select one:
- add-on webextension storage (default)
- file-system-access (folder xy)
- nextcloud (user xy, folder xy)
- ...
The templates and scripts will be loaded and saved according to the selected storage.
If templates use attachments or images, which are included from the local file system, they have the following source options in the future
- file : current default, will be deprecated and removed, templates have to be adjusted
- url : a remote url
- vfs-xy: the file path is interpreted as a path in the specified virtual file system
Quicktext should work without additional providers using only the WebExtension storage, but users can opt to use any storage they want.
Will this solve all the issues?