This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to clear the gui.window_title option from the command-line?

0

I am running Wireshark 1.6.6 on Windows XP SP3 (32-bit). Previously, a custom window title had been added through the Edit -> Preferences -> Layout -> Custom window title preference. Now I want to be able to start Wireshark from the command-line (or a Windows shortcut) and have that window title cleared out, but I have been unsuccessful at doing so. I have tried as many combinations of single & double quotations, escaped and not escaped, as I can think of, but to no avail.

Ultimately my goal is to create an installer that ensures the window title is cleared, so I will need to take what works from the command-line then modify the relevant CreateShortCut entries in the wireshark.nsi file, and from what I've seen, the quotation requirements might be different there as well.

Some things I've tried that fail:

  • -o "gui.window_title:" This results in "wireshark: Invalid -o flag "gui.window_title:"
  • -o "gui.window_title:""" Wireshark displays, ["]
  • -o "gui.window_title:\"\"" Wireshark displays, [""]
  • -o 'gui.window_title:' Wireshark displays the old window title that I'm trying to clear away
  • -o 'gui.window_title:''' Wireshark displays the old window title that I'm trying to clear away
  • -o 'gui.window_title:\'\'' Wireshark displays the old window title that I'm trying to clear away
  • -o "gui.window_title:''" Wireshark displays, ['']
  • -o "gui.window_title:\'\'" Wireshark displays, [\\'\\']
  • -o 'gui.window_title:""' Wireshark displays the old window title that I'm trying to clear away
  • -o 'gui.window_title:\"\"' Wireshark displays the old window title that I'm trying to clear away
  • -o 'gui.window_title: ' This results in "wireshark: Invalid -o flag "'gui.window_title:"
  • -o 'gui.window_title: ''' This results in "wireshark: Invalid -o flag "'gui.window_title:"
  • -o 'gui.window_title: \'\'' This results in "wireshark: Invalid -o flag "'gui.window_title:"

... and several other variants as well, none of which worked either.

Does anyone have any ideas? Thanks, Chris

asked 12 Apr '12, 14:01

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142
accept rate: 20%


One Answer:

1

Looks to me like Wireshark's only allows you to set a window title, not to clear it. I think your first attempt (-o "gui.window_title:") should have worked. It seems like Wireshark's error checking is interpreting this as a null/invalid window title and disallowing it. I tried using a single space for the window title, and Wireshark choked on that as well, but it allowed me to use any other single character that I tried. I think this should go on bugzilla.wireshark.org.

answered 13 Apr '12, 22:00

Jim%20Aragon's gravatar image

Jim Aragon
7.2k733118
accept rate: 24%