First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Lua support in 4.2.0 for Windows

  • retag add tags

After upgrading to 4.2.0 from 4.0.9 in Windows, it looks like I lost lua support. I cannot find init.lua anywhere in any of the wireshark directories. Where can I get init.lua for 4.2.0 and in what directory should I place it?

Mike69's avatar
1
Mike69
asked 2023-12-18 15:11:24 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

See the 4.2.0 release notes, in particular, the section on init.lua changes.

grahamb's avatar
23.8k
grahamb
answered 2023-12-18 15:48:31 +0000
edit flag offensive 0 remove flag delete link

Comments

I already read the RN and there is no answer in it to my question here. After upgrading to 4.2.0, init.lua dissapeared. Again - I cannot find this file anywhere in the wireshark directories after the upgrade to 4.2.0, including the plugin directories. Are you trying to say that 4.2.0 does not use init.lua anymore? If yes, what kind of file does it use in order to specify which lua dissectors to be loaded when wireshark is started?

Mike69's avatar Mike69 (2023-12-18 16:02:17 +0000) edit

The explanation for the change isn't that helpful, apparently it's now up to the user to create one using the "Personal Lua Plugins" path.

See the Merge Request Lua: Load init.lua from plugins directory that committed the change. Unfortunately the blurb doesn't explain why the file was removed, only that if it exists, it will be loaded from other places.

grahamb's avatar grahamb (2023-12-18 16:25:07 +0000) edit

I don't think the developer that made that change is on Ask, so you'll have to comment directly on the MR.

grahamb's avatar grahamb (2023-12-18 16:26:33 +0000) edit

Thanks. Creating own init.lua and placing it under the default profile directory worked.

Mike69's avatar Mike69 (2023-12-18 20:18:47 +0000) edit

may i know how you created ur own init.lua file? I have also copied the init.lua file of previous version to wire shark but still it is not working for me.

vikas's avatar vikas (2024-02-15 17:38:50 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer