From fd7abef300fe3d547bd383843c76268a44ba5184 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 13 Feb 2024 16:16:12 -0600 Subject: docs + more search paths --- README.md | 5 +++++ plugin.go | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/README.md b/README.md index 239a334..7d09bd4 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,11 @@ hopefully also things like libSDL, faiface/pixel, slint ## General Thoughts +A primary design purpose for this toolkit is to be able to develop a +modern set of control panels for linux. Specifically a DNS and IPv6 +control panel. Since the toolkit interface plugins are cross platform, +these control panels should be able to run on the Macos and Windows also. + Definitions: ```go diff --git a/plugin.go b/plugin.go index 191c4ee..0a039d5 100644 --- a/plugin.go +++ b/plugin.go @@ -168,6 +168,18 @@ func searchPaths(name string) *aplug { return p } + filename = homeDir + "/go/lib/toolkits/" + name + ".so" + p = initToolkit(name, filename) + if p != nil { + return p + } + + filename = "/usr/lib/go-gui/" + name + ".so" + p = initToolkit(name, filename) + if p != nil { + return p + } + filename = "/usr/lib/go-gui/latest/" + name + ".so" p = initToolkit(name, filename) if p != nil { -- cgit v1.2.3