This question already has an answer here:
I'm logged into an Ubuntu 14.04 server remotely with
ssh. I'm trying to find out which Desktop Environment is running. When I do the following, nothing happens:
admin@server:~$ echo $DESKTOP_SESSION admin@server:~$ echo $XDG_CURRENT_SESSION admin@server:~$
I know for a fact that there is a desktop running on the server. I saw it this morning, but now I'm 5 miles away.