summaryrefslogtreecommitdiff
path: root/pluginCheck.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-09 02:04:56 -0500
committerJeff Carr <[email protected]>2025-09-09 02:04:56 -0500
commite799a19b2cca024cb8effa0da7c97de580d7118c (patch)
tree304d73cedb885fb40e54242fed4804c13878765d /pluginCheck.go
parent3a0f307270baf3eaecd8e21468e4580400d42587 (diff)
working on the GUI init processv0.22.54
Diffstat (limited to 'pluginCheck.go')
-rw-r--r--pluginCheck.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/pluginCheck.go b/pluginCheck.go
index 6dc072d..f1514a3 100644
--- a/pluginCheck.go
+++ b/pluginCheck.go
@@ -60,6 +60,7 @@ func checkPluginCompatibility(pluginPath string) error {
return nil
}
+/*
// tests the plugin file will load
func testPluginOld() {
_, err := plugin.Open(argGui.GuiPluginHack)
@@ -70,17 +71,20 @@ func testPluginOld() {
log.Log(PLUG, "plugin.Open() SUCCESS loading plugin =", argGui.GuiPluginHack)
os.Exit(0)
}
+*/
func CheckPlugin() string {
if argGui.GuiPluginHack != "" {
// does os.Exec() and does not return
- testPluginAndExit()
+ TestPluginAndExit()
}
return "boo"
}
// loads the plugin, then exits with 0 or -1
-func testPluginAndExit() {
+// this is a workaround for GO plugins not cleaning up correctly after
+// an attempt to load them
+func TestPluginAndExit() {
log.Log(WARN, "TEST plugin START", argGui.GuiPluginHack)
absPath, err := filepath.Abs(argGui.GuiPluginHack)