title: Running GUI Application from docker, QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
body: <p>I am fairly new to Docker (learned about it yesterday, found it interesting) and have absolutely no skill with it so please try to make your answer as noob friendly as possible.
  I ran a ubuntu image and tried to install and run wireshark in it (GUI based packet catcher) but on running I got the following error :</p>
  
  <pre><code>QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
  dbus[2537]: The last reference on a connection was dropped without closing the connection. This is a bug in an application. See dbus_connection_unref() documentation for details.
  Most likely, the application was supposed to call dbus_connection_close(), since this is a private connection.
    D-Bus not built with -rdynamic so unable to print a backtrace
  Aborted (core dumped)
  </code></pre>
  
  <p>I made my docker container with :</p>
  
  <p><code>sudo docker run --name ubuntu -v /home/anmol/Projects/Docker/Ubuntu/:/home -it --volume="$HOME/.Xauthority:/root/.Xauthority:rw" --env="DISPLAY" --net=host ubuntu</code></p>
  
  <p>Additionally, I have tried :</p>
  
  <p><code>xhost +local:docker</code></p>
  
  <p>which didn't work so I tried :</p>
  
  <p><code>xhost +</code></p>
  
  <p>which also didn't work and I kept getting the same error.</p>
  
  <p>I have a feeling I am supposed to install some x11 package inside my container but I don't know which one or if that is the right thing to do.</p>