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

init.lua is not present in the latest wireshark

  • retag add tags

I see there is no init.lua file in the latest wireshark version. 4.2.0 + versions. We usually add some additional files and not we dont know where to add that.

vikas's avatar
1
vikas
asked 2024-02-15 17:36:34 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

From this commit, mentioned in the 4.2.0 release notes:

The "init.lua" file is now loaded from any of the Lua plugin directories. Previously it was loaded from the personal configuration directory. (For backward-compatibility this is still allowed; note that deprecated features may be removed in a future release).

There was an issue affecting loading scripts from subdirectories that was fixed in 4.2.1:

From the developer's guide:

If Lua is enabled, Wireshark will first try to load a file named init.lua from the global plugins directory. and then from the user’s personal plugins directory. Then all files ending with .lua are loaded from the global plugins directory. Then all files ending with .lua in the personal Lua plugin’s directory.

Note that the personal plugin location changed around 2.6, though lua plugins, being source and not binary, can be in the older location as well.

To see the list of directories, go to "Help->About Wireshark" and select the "Folders" tab.

johnthacker's avatar
156
johnthacker
answered 2024-02-17 18:19:30 +0000
edit flag offensive 0 remove flag delete link

Comments

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