1

I want to write a script to detect if the current gnome session is from a RDP connection via xRDP server or its a native launched gnome session.

In this case, I would like the native session(s) to start an application.

But I'm unsure where to get started. Is there any environment variable I could check for?

Thanks.

Winfred
  • 875
  • 6
  • 12
  • check the DISPLAY environment variable, it might be different for a virtual session vs one at the X Server. – TeTeT Jun 13 '13 at 06:34

0 Answers0