0

I have an issue for which the work around would be to start the application in X instead of headless. How do I make sure the app is executed on the desktop, even if I run the command from a remote ssh connection.

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
HTDutchy
  • 103
  • 3

1 Answers1

1

You can use the DISPLAY environment variable to start a GUI program on the remote computer. However, it is not shown to you, but rather opens on the active X-session with address :0, which is the default for the first X-session. To enable, use

export DISPLAY=:0

For more information, see this post.


If you also want to see it, use ssh -X to log on that computer. For more information, see this relevant post.

Sebastian
  • 8,677
  • 4
  • 39
  • 49