lua script not getting executed in 4.2.x release
On any linux machine, after upgrading from 4.0.12 to 4.2.x release, lua scripts are not getting executed. May i know what steps i need to follow to run lua scripts in 4.2.x release ?
Are the scripts in the "Global Lua P.lugins" or "Personal Lua Plugins" directory?
Or are they being called with the tshark
-X lua_script
?In the Wireshark gui, are they listed in
Help -> About Wireshark:Plugins
?1) On linux machine, plugins are kept at /usr/lua/. But wireshark is not picking up.
2) On windows, while starting wireshark, below mentioned-error message is seen (lua scripts are present at /Users/abc/.config/wireshark/plugins/check.lua)
Lua: Error during loading: /Users/abc/.config/wireshark/plugins/test.lua:33: attempt to call field 'prepend_path' (a nil value) stack traceback: /Users/abc/.config/wireshark/plugins/test.lua:33: in main chunk
Looking for a way to use lua script with wireshark 4.2.x version (particularly on linux)
prepend_path
removed: 11787: Lua: Remove package.prepend_pathWhat is config to have linux system look in
/usr/lua
for scripts?Environment variable? Change to
init.lua
?init.lua
behavior changed here: 19516: 4.2.0: init.lua in subdirectories not loaded anymorelua scripts were working for me in 4.0.12 version. Can you share some steps or sample code on what all changes are required to run lua scripts in 4.2.x ?
Did you check the two merge requests in the comment above?