Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Lua API - register_menu unavailable after launch?

From: Moshe Kaplan <mosheekaplan@xxxxxxxxx>
Date: Sun, 23 Feb 2020 18:22:37 -0500
The register_menu function in Lua API can only be called when Wireshark is first launched, as can be seen from how register_menu is replaced with  wslua_not_register_menu in init_wslua.c :https://github.com/wireshark/wireshark/blob/20800366ddbbb2945491120afe7265796c26bf11/epan/wslua/init_wslua.c#L145

However, I don't see any documentation as to why register_menu is unavailable after the application launch in either the developer guide or the Wiki (that limitation isn't even mentioned!).

Why is  register_menu only available when Wireshark is first launched?

Thanks,
Moshe