diff options
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -280,6 +280,12 @@ func (n *Node) Default() *Node { log.Log(WARN, "LoadToolkit() failed for =", argGui.GuiPlugin) return nil } + if me.appPlugin != "" { + if n, err = n.LoadToolkit(me.appPlugin); err == nil { + return n + } + } + // if DISPLAY isn't set, return since gtk can't load // TODO: figure out how to check what to do in macos and mswindows if os.Getenv("DISPLAY") == "" { @@ -393,3 +399,9 @@ func trapStdout() { // defer guioutf.Close() } + +// sets the applications requested plugin +// the command line arguements override this +func (n *Node) SetAppDefaultPlugin(plugname string) { + me.appPlugin = plugname +} |
