@seyn6gk regarding startx etc. not working, I'm pretty sure it's because TV looks for session type (loginctl session-status | grep Service:
) and finds out its type is tty
instead of x11
(or wayland
).
Systemd v246 added support for changing session type "on the fly" (see how sway implements that), but I couldn't make it work with Activate -> TakeControl -> SetType using dbus-send
and then startx
(I always get only owner of the terminal can take control
).
Feel free to try yourself as it should work.
sudo dbus-send --system --print-reply --dest=org.freedesktop.login1 \
/org/freedesktop/login1/session \
org.freedesktop.DBus.Introspectable.Introspect |
grep -E 'node name="_.*'
(use the session number in the subsequent dbus-send calls)
dbus-send --system --print-reply --dest=org.freedesktop.login1 \
/org/freedesktop/login1/session/_"$1" \
org.freedesktop.login1.Session.Activate
dbus-send --system --print-reply --dest=org.freedesktop.login1 \
/org/freedesktop/login1/session/_"$1" \
org.freedesktop.login1.Session.TakeControl boolean:true
dbus-send --system --print-reply --dest=org.freedesktop.login1 \
/org/freedesktop/login1/session/_"$1" \
org.freedesktop.login1.Session.SetType string:x11
Pinned Comments
swiftgeek commented on 2023-08-01 19:17 (UTC) (edited on 2023-08-01 19:21 (UTC) by swiftgeek)
As mentioned in @seyn6gk's comment
Without changing anything, since teamviewer 13 a desktop environment/login with display manager like lightdm/sddm/gdm is required.
startx
users can follow workaround mentioned in @r7v s commentr7v commented on 2022-06-07 14:49 (UTC)
Workaround for startx
Create drop-in
/etc/systemd/system/getty@tty1.service.d/getty@tty1.service-drop-in.conf
withSource: https://community.teamviewer.com/English/discussion/95696/teamviewer-15-stopped-working-on-debian-buster#M4399