Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Specifying Wireshark.app path in Preferences on MacOS does not work #288

Closed
pstavirs opened this issue Nov 1, 2019 · 3 comments
Closed

Comments

@pstavirs
Copy link
Owner

pstavirs commented Nov 1, 2019

This is because Ostinato expects the actual executable i.e. /Applications/Wireshark.app/Contents/MacOS/Wireshark - but the file picker UI does not allow drilling down into an application bundle and the Preferences UI does not allow directly entering the full path

If user gives a .app as the path, Ostinato should use the plist.info to find the executable name and use the full path to that instead.

@ghost
Copy link

ghost commented Nov 1, 2019

Workaround, tested on macOS 10.13.6 (High Sierra):

The file picker uses the same shortcuts as the Finder, so Shift-Command-G opens a text entry field to enter a directory.

Then you can

  • enter a path manually
  • use right-click Paste to paste a path
  • drag a directory from the Finder into the text entry

I prefer to clear the text entry, use the Finder to go into the Wireshark application bundle, then drag the Contents directory into the entry field and open that. After that I open the MacOS directory, then select Wireshark.app.

@pstavirs
Copy link
Owner Author

pstavirs commented Nov 5, 2019

Another workaround - create a softlink to the actual executable inside the application bundle -

ln -s wireshark /Applications/Wireshark.app/Contents/MacOS/Wireshark

and use the Preferences file picker UI to select the softlink

@ghost
Copy link

ghost commented Nov 5, 2019

Nice finding. But I would swap the arguments, the last argument is the softlink.

Instead

ln -s wireshark /Applications/Wireshark.app/Contents/MacOS/Wireshark
ln -s /Applications/Wireshark.app/Contents/MacOS/Wireshark wireshark

@pstavirs pstavirs added this to the v1.1 milestone Jan 30, 2020
pstavirs added a commit that referenced this issue Feb 14, 2020
GUI file picker can still be used, but is not required.

Updates #288
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant