ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

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.)