Highlighted
Posted by
Henagon

TeamViewer has different ID depending on how it is started

I've noticed it uses the ID in /etc/teamviewer/global.conf when I open a terminal through my desktop and run /opt/teamviewer/tv_bin/TeamViewer . For reproducibility, if I "ssh localhost" in the same terminal, set (and unset) all environment variables (though only the DISPLAY variable is required, I attempted to change all in order to troubleshoot the issue) to match the original desktop terminal and run the same command, I get a completely different TeamViewer ID. Across several computers, this behavior is repeatable (and very undesireable). How can I reliably (re)start TeamViewer over SSH (or in a script) in such a way that it uses the settings in global.conf? This issue occurs in TeamViewer 14 and 15.