Search code examples
virtualizationvirtual-machinecitrix

How can a program detect that it is running on Citrix?


I am creating a program, which may or may not run inside a Citrix instance. The program needs to detect this, because it needs to behave in a different way on Citrix. How can it be detected in a reliable way? So far, my best guess was to check whether the computer has a C-drive.


Solution

  • bool(os.environ.get('citrix_version'))
    

    I think this is the best way to detect in python.