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 ♦
6.2k725106
accept rate: 17%


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.

link

answered 13 Apr '12, 22:00

Jim%20Aragon's gravatar image

Jim Aragon
4.3k73081
accept rate: 17%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×19
×1
×1

Asked: 12 Apr '12, 14:01

Seen: 1,502 times

Last updated: 13 Apr '12, 22:00

powered by OSQA