mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-30 20:58:00 -06:00
Fix #2541: installed plug-ins stay installed after a restart
Install Plug-in (plugin.install) now keeps the plug-in's module in a Plug-ins folder next to the preferences, as Illustrator keeps plug-ins in its Plug-ins folder, and the desktop app and vectorcraft-cli install the ones there at startup (a module that doesn't load is skipped with a log record, at most 512 MB are read). Remove Plug-in deletes it from the folder. The Additional Plug-ins Folder preference is still loaded from where it is. Confined MCP servers and VECTORCRAFT_NO_PREFS keep nothing, as with the PDF preset and colour profile stores. Docs: docs/mcp.md, docs/plugins.md, docs/target-app-parity.md.
This commit is contained in:
@@ -159,11 +159,12 @@ fn main() -> ExitCode {
|
||||
}
|
||||
}
|
||||
|
||||
/// A headless session that remembers what the user keeps between runs: the PDF presets saved and
|
||||
/// the ICC profiles loaded (#2168, #2174), in the folders next to the preferences that the desktop
|
||||
/// A headless session that remembers what the user keeps between runs: the PDF presets saved, the
|
||||
/// ICC profiles loaded and the plug-ins installed (#2168, #2174, #2541), in the folders next to the preferences that the desktop
|
||||
/// app uses too. `VECTORCRAFT_NO_PREFS` and `VECTORCRAFT_CONFIG_DIR` apply as they do there.
|
||||
fn with_stores(mut h: Headless) -> Headless {
|
||||
prefs_dir::attach_profile_store(&mut h.session);
|
||||
prefs_dir::attach_plugin_store(&mut h.session);
|
||||
prefs_dir::attach_pdf_preset_store(&mut h.session);
|
||||
h
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user