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"