Wireshark-users: Re: [Wireshark-users] (wireshark:26800): Gtk-WARNING **: cannot open display:

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 12 Dec 2007 00:34:13 -0800
Stephen Fisher wrote:

 but on MacOS X sudo does preserve environment
variables and has an option not to.

(...unless you're running Mac OS X 10.5, in which case it only preserves the environment variables it's configured to preserve.)