Team Viewer on Linux VM with Horizon Agent

I use Team Viewer with a virtual machine (VM) running Ubuntu 18.04. The VM also has the Horizon Agent plug-in installed. This allows me to connect to the same VM using both Team Viewer and Horizon Client. In the new version of the Horizon Agent, the display environment variable value was changed to 100. However, Team Viewer continues to work on display: 0 or wants to work on display: 0. This causes login problems. After logging in via Team Viewer, I can't log in with Horizon Client or vice versa. If after reboot Team Viewer can bind to display: 100 by default, this problem seems to be solved. Is there anyone who can help me?