From: Ulrich Sibiller <[email-masked]>
Date: Fri, 22 Mar 2019 23:42:03 +0100

You can use xprop -root to check if you are running inside an nxagent:

e.g.:

$ xprop -root NX_AGENT_VERSION
NX_AGENT_VERSION(STRING) = "3.5.99.19"