Currently, a Wireshark upgrade overwrites the system asked 13 Jan '14, 05:40 MattKnepp edited 02 Feb '14, 13:56 helloworld |
One Answer:
Just place your version of Regards answered 13 Jan '14, 07:03 Kurt Knochner ♦ edited 13 Jan '14, 07:13 |
Currently, a Wireshark upgrade overwrites the system asked 13 Jan '14, 05:40 MattKnepp edited 02 Feb '14, 13:56 helloworld |
One Answer:
Just place your version of Regards answered 13 Jan '14, 07:03 Kurt Knochner ♦ edited 13 Jan '14, 07:13 |
Note though that your init.lua won't pick up any changes Wireshark's init.lua has had in the new version. init.lua doesn't change very often, but if it does your Lua scripts might need those changes. (some of the things in init.lua are constants used inside wireshark, which could theoretically change) So just keep that in mind if something's not working in your scripts when you upgrade.
Unless you need to change things in the system
init.lua
(in which case you run the risk of having your changes no longer apply to an updated systeminit.lua
), putting just your new stuff in your personalinit.lua
should work.If you want those additions to be global for all users on your system, there's currently no good way to do that; perhaps there should be a system Lua init file containing stuff such as Wireshark's definitions, an optional system Lua init file containing site customizations and additionsl, and an optional personal Lua init file containing user customizations and additions.
Actually, the system
init.lua
is always loaded first, and then, the personalinit.lua
. You would only lose the system changes if your personalinit.lua
overwrites the system values, which you'd want to avoid for the very reason @Hadriel points out.If you find a need to add to system tables (e.g., adding to the Wiretap file types), make sure to append your own values rather than copy so that you'll pick up any updates from the system initialization. System flags/enumerations in
init.lua
(e.g.,MENU_ANALYZE_UNSORTED
,ENC_UTF_8
) normally should not be overwritten unless you're "feeling experimental".@GuyHarris, You're probably right in that there's no "good way" to support global additions to
init.lua
, but it's still feasible with a one-line modification to the systeminit.lua
to load a "globalinit.lua
", stored in a location that is accessible to all users and not overwriteable by the Wireshark installation.