feat(plugin,ui): consolidate builtin.core, enforce Guest Tools toggle, and add QQ group entry
- Merge essential builtins (driver, default theme, start prep, host workarounds) into always-on system plugin builtin.core, with state.json and arg-ledger migration plus app-scoped workaround settings honored by both GUI and CLI. - Ensure disabling builtin.bridge.guest-tools stops the localhost bridge without being restarted by feature callers, fix guesttools.Server Start/Close race, and reflect the disabled state in VMPage and SettingsModal. - Add QQ community group entry in About settings with Windows tencent:// protocol detection, cached invite redirect resolution, and copy-ID fallback. - Update docs/plugin-architecture.md, Wails bindings, and i18n strings.
This commit is contained in:
1 parent
007f2ac93c
commit
181c616909
35 files changed
+1432
-578
No files matched your search
@@ -44,9 +44,6 @@ func openCLIPluginManager(cfg *config.Config, safeMode bool) (*plugin.Manager, *
|
||||
return filepath.Join(cfg.XDGDataDir(), "reims-ctl", "vms")
|
||||
})
|
||||
mgr.Registry().SetInUseChecker(func(pluginID string) (bool, string, error) {
|
||||
if pluginID == builtin.IDDriverReimsMacOS {
|
||||
return router.CheckDriverInUse(context.Background(), builtin.IDDriverReimsMacOS)
|
||||
}
|
||||
seen := map[string]bool{}
|
||||
candidates := append([]string{pluginID}, mgr.Registry().DeclaredDriverIDs(pluginID)...)
|
||||
for _, did := range candidates {
|
||||
@@ -64,6 +61,9 @@ func openCLIPluginManager(cfg *config.Config, safeMode bool) (*plugin.Manager, *
|
||||
mgr.Close()
|
||||
return nil, nil, err
|
||||
}
|
||||
if err := builtin.MigrateRetired(mgr); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "[plugin] could not migrate merged core plugin state: %v\n", err)
|
||||
}
|
||||
_ = mgr.LoadExternal()
|
||||
mgr.Registry().Reconcile(context.Background())
|
||||
|
||||
|
||||
Reference in new issue
Block a user