Skip to content

Lua: Load init.lua from plugins directory

Instead of having a global init.lua in datafile_dir that may contain library code, load the init.lua script from the plugins directories, similar to other Lua scripts, but guaranteed to be the first one loaded.

This is consistent with our practice and avoids overwriting the customizable share/wireshark/init.lua with each instalation or upgrade.

The init.lua in the configuration directory is still loaded for backward compatibility. It generates a warning in the console.

Merge request reports