This is our old Q&A Site. Please post any new questions and answers at

When i run Wireshark from console I get this error.:

error: XDG_RUNTIME_DIR not set in the environment.
(wireshark:5679): Gtk-WARNING **: cannot open display:

How to fix it?

asked 07 Jan '17, 18:50

Saldor's gravatar image

accept rate: 0%

edited 08 Jan '17, 04:42

Jaap's gravatar image

Jaap ♦

What do you mean by "from console"? Do you mean, for example, running Wireshark from the command line on the Linux console?

(07 Jan '17, 20:40) Guy Harris ♦♦

yes, from command line.

(08 Jan '17, 22:15) Saldor

From the command line on the Linux console, or from the command line in a terminal window such as xterm or rxvt or KDE Konsole or gnome-terminal or..."? The first of those won't work and would be very difficult to make work; the second of those should work, unless you're trying to run Wireshark as root (which you SHOULD NOT DO).

(09 Jan '17, 00:53) Guy Harris ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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

Question tags:


question asked: 07 Jan '17, 18:50

question was seen: 2,539 times

last updated: 09 Jan '17, 00:54

p​o​w​e​r​e​d by O​S​Q​A