After I installed qubes-video-companion-dom0 in dom0 and qubes-video-companion-sender,qubes-video-companion-receiver in fedora 38 template qube, I’m able to share app qube’s screen, and to receive webcam’s video stream in an app qube.
However I’m not able to share dom0’s screen. If I type qubes-video-companion screenshare in an app qube, then select dom0 as the sender, there are no messages indicating successful screensharing. Instead, after a long waiting, there will be error messages, as below:
Traceback (most recent call last):
File "/usr/share/qubes-video-companion/receiver/receiver.py", line 82, in <module>
main(sys.argv)
File "/usr/share/qubes-video-companion/receiver/receiver.py", line 17, in main
width, height, fps = read_video_parameters()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/qubes-video-companion/receiver/receiver.py", line 63, in read_video_parameters
raise RuntimeError("wrong number of bytes read")
RuntimeError: wrong number of bytes read
The logs are the same as when selecting an app qube which doesn’t have qubes-video-companion-sender and qubes-video-companion-receiver as the sender. But /usr/share/qubes-video-companion/sender/screenshare.py does exist in dom0.
The README.md in qubes-video-companion repository claims that screensharing dom0 is supported, so I don’t think I’m going too far.
A secure confirmation dialog will appear asking where the screen to share is to be sourced from. Select any qube as the target screen, this could be a regular unprivileged qube such as personal or a DisposableVM, or the ultimately trusted dom0 (caution is advised to avoid information disclosure). Afterwards, confirm the operation by clicking OK.
I guess you need to edit /usr/share/qubes-video-companion/sender/service.py file and comment out or remove Notify.Notification.new(app, msg, icon).show() line there.