0
  • When I run echo $XDG_CURRENT_DESKTOP or $XDG_SESSION_DESKTOP I can see values on my Linux machine.
  • When I run same commands on my machine from remote machine showing empty results.

IMO, those variables are set only for its session. How to get which desktop environment is running on the remote machine?

I was developing an application that has a feature to check which desktop environment is running on Linux machine.

Tried (getting empty results):

bash -c "echo $XDG_CURRENT_DESKTOP"

source ~/.profile && echo $XDG_CURRENT_DESKTOP

0 Answers0