VPN menu bar icon

GrBear

Registered
So I was playing around the VPN functionality in 10.3, and now there's an icon in the menubar (looks like a sideways battery with a bar graph) that when clicked lists your VPN connections available.

I've deleted all the VPN configurations, but the icon is still there. I've tried deleting the prefs file, rebooting, etc.. and it won't go away.

Does anyone know how to get that darn menubar icon to disappear?

Thanks.
 
The preference you want is actually in com.apple.systemuiserver. For example, I've got:

mark@poppacrow:~ % defaults read com.apple.systemuiserver menuExtras
(
"/System/Library/CoreServices/Menu Extras/Displays.menu",
"/System/Library/CoreServices/Menu Extras/Volume.menu",
"/System/Library/CoreServices/Menu Extras/TextInput.menu",
"/System/Library/CoreServices/Menu Extras/Clock.menu",
"/System/Library/CoreServices/Menu Extras/User.menu"
)

So,

defaults write com.apple.systemuiserver menuExtras -array \
"/System/Library/CoreServices/Menu Extras/Displays.menu" \
"/System/Library/CoreServices/Menu Extras/Volume.menu" \
"/System/Library/CoreServices/Menu Extras/TextInput.menu" \
"/System/Library/CoreServices/Menu Extras/Clock.menu"\
"/System/Library/CoreServices/Menu Extras/User.menu"

Substituting the list of menu extras you want, of course. Just leave out VPN.menu.
 
heh - trust me to find the most complicated way possible, as long as it involves the terminal.

That said - if you look in /System/Library/CoreServices/Menu Extras/ there's all kinds of interesting stuff, with no obvious way of adding it sometimes. This at least lets you add any menu extra you want without having to hunt through system preferences...
 
In the interest of simplicity, I even left out the bit about the trained monkey that fires marbles at the keyboard with a slingshot...
 
Back
Top