Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • You have a typo in $DESKTOP_SESSION. Anyway this variable is populated in the desktop session itself when desktop is starting, you can't expect that shell you get when you login via ssh will have this variable defined. Commented Apr 22, 2015 at 8:09
  • Do you want to know of a desktop session is running or whether you have any installed? Commented Apr 22, 2015 at 10:03
  • @terdon I would like to know both. Commented Apr 22, 2015 at 10:41
  • What do you mean by “a GUI in python”? You can run a GUI program on a machine that doesn't have a display. The Unix display is automatically forwarded over SSH connections (if enabled). You don't run a desktop environment on the server, it runs on your local machine and can show programs running on other machines. Commented Apr 22, 2015 at 22:23
  • @Gilles By GUI, I meant a script which will come up with some display on execution. Since the server does not need to have a display as you mentioned, my doubt is clear. I just would like to know one thing, is there anything in particular which we need to do to run the script apart from what we do during normal scripts execution. Commented Apr 23, 2015 at 5:02