How to disable auto start of Teamviewer GUI when logging on (while Deamon should stay active)
I have installed TeamViewerHost version on my linux machine.
The daemon teamviewerd starts correctly at boot.
But as soon as I log on, the Teamviewer GUI is started and resides on the taskbar (with icon).
That GUI program is: /opt/teamviewer/tv_bin/TeamViewer.
The daemon is: /opt/teamviewer/tv_bin/teamviewerd
If I close the TeamViewer GUI, it keeps starting correctly when I remotely access my linux with a TeamViewer client f.i. Windows.
So there is totally no need to have the TeamViewer GUI always started at login.
So the question is:
- how do I disable the auto startup of the GUI at login (/opt/teamviewer/config/global.conf ?)
- what process is starting this GUI (teamviewerd?)
- the autostart of the GUI should keep starting when remotely accessing my linux, as expected, but only then.
Answers
-
Hi, the same problem since 2-3 days, on Windows.
I'm using v15.50.5 now and I didn't change any setting.
Now it simply starts maximized and I can't have it minimized on tray bar since system startup.
If I turn off auto start, it simply doesn't start up (as it should do).
Turnit it on again, I have it maximized again.
How to solve this issue?
1 -
You can use a script like the following that is executed in a loop and runs after each TeamViewer disconnection. You can run this in the background such as a screen.
#!/bin/bash
TV_desktop='/opt/teamviewer/tv_bin/TeamViewer_Desktop' # Check installation directory for this file
tvclient='/opt/teamviewer/tv_bin/TeamViewer' # Check installation directory for this file
pid_desktop=''
for i in {1..1000000}
do
while [ -z "$pid_desktop" ]
do
sleep 5
pid_desktop=$(ps aux | grep -v grep | grep $TV_desktop | awk '{print $2}')
done
while [ ! -z "$pid_desktop" ]
do
sleep 5
pid_desktop=$(ps aux | grep -v grep | grep $TV_desktop | awk '{print $2}')
done
pid_client=$(ps aux | grep -v grep | grep -w $tvclient | awk '{print $2}')
kill -9 $pid_client # Terminates the TeamViewer GUI
kill -9 $pid_desktop # Closes extra TeamViewer tasks that were not terminated completely
# gnome-screensaver-command -l # Automatically locks the screen upon exit
done
1 -
For now I just use this (MX) Linux command after each TeamViewer session:
pkill -9 TeamViewer
But it should not stay active in the Linux taskbar
0 -
So NO official solutions, from Teamviewer, I see.
Probably they'll solve it with the next update?
0