Wireshark-dev: Re: [Wireshark-dev] My LUA menu items turn up in the wrong place
From: Tony Trinh <tony19@xxxxxxxxx>
Date: Sun, 8 Jul 2012 23:28:03 -0400
The Analysis menu is the default destination when the passed-in menu index is nil (i.e., MENU_TOOLS_UNSORTED, in your case, evaluates to nil). The menu IDs (along with other useful variables) are defined in init.lua, so it's likely that init.lua wasn't loaded (because Wireshark couldn't find it in the expected location). This is typical when running Wireshark from a build directory. See similar problem.

To resolve this, copy init.lua and console.lua from your build directory to your home directory:
  • $HOME/.wireshark/        (*nix)
  • %APPDATA%/Wireshark/  (Windows)
and restart Wireshark.

-Tony

On Sun, Jul 8, 2012 at 10:33 PM, Richard Sharpe <realrichardsharpe@xxxxxxxxx> wrote:
Hi folks,

If I do:

    register_menu("Some Menu", dialog_some_menu, MENU_TOOLS_UNSORTED)

it turns up in the wrong place when I use a reasonably recent version.
It turns up in the bottom of the analysis menu, IIRC.

Does anyone know why?

--
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe