D
D
DVoropaev2020-06-24 15:34:15
linux
DVoropaev, 2020-06-24 15:34:15

What is the "qt.qpa.screen: QXcbConnection: Could not connect to display :0" error and how to fix?

$ sudo wireshark
[sudo] пароль для dvr: 
No protocol specified
qt.qpa.screen: QXcbConnection: Could not connect to display :0
Could not connect to any X display.

but if run without sudo, then wireshark starts

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Official account of the Timeweb team, 2020-06-24
@timeweb_team

The problem arises from the control of user rights. Use sudo -E or specialized utilities to run graphical applications as root. We recommend that you read more at the links:
https://losst.ru/oshibka-cannot-open-display-linux
https://www.reddit.com/r/wireshark/comments/feamxg...

J
Jacob E, 2020-06-24
@Zifix

It can also work from the user, you just need to red-eye a little .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question