I have a GUI application written in Qt and I wanted to run tests by ssh (or Jenkins). There is only one user account, which allows to run it in display mode (ofc when I previously do export $DISPLAY=:0. On other user, jenkins, I saw an error in console:
QXcbConnection: Could not connect to display :0
Aborted (core dumped)
What should I do to allow this user to run applications in graphical mode? I use Ubuntu 14.04.