Ask Your Question
0

Why is wireshark 2.6.1 forcing a specific keyboard layout on macOS when started with sudo? [closed]

asked 2018-06-01 22:14:13 +0000

Outside of wireshark I am using an alternative keyboard layout and I am unable to use it, because wireshark enforces the layout which is default in my country. I have started wireshark in a terminal with "sudo wireshark".

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by erik-code
close date 2018-06-16 09:52:57.984466

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-06-01 22:35:06 +0000

Guy Harris gravatar image

First of all, you shouldn't be running Wireshark as root; to quote one of the README files in the source tree:

WIRESHARK CONTAINS OVER TWO MILLION LINES OF SOURCE CODE. DO NOT RUN THEM AS ROOT.

If you installed the ChmodBPF launch daemon as part of the process of installing Wireshark, that should make the BPF devices accessible to anybody in the access_bpf group (the Wireshark installer should have added you to that group), so that you can capture on the regular interfaces.

Alternatively, you could make the dumpcap program in the Wireshark app bundle set-UID root.

And, in answer to your original question, what happens if, for example, you quit TextEdit and then do

sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit

Does that running-as-root instance of TextEdit use the alternative keyboard layout? If so, then the answer is "programs run with sudo will use the default layout"; if not, the answer may be "programs using Qt run with sudo will use the default layout" (in which case Google Earth might have the same issue).

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-06-01 22:14:13 +0000

Seen: 31 times

Last updated: Jun 01