Re: Wayland screen capture





On Mon, 2018-04-30 at 20:43 +0100, David Woodhouse wrote:
On Mon, 2018-04-30 at 17:29 +0200, Jonas Ådahl wrote:
On Mon, Apr 30, 2018 at 04:23:51PM +0100, David Woodhouse wrote:
On Mon, 2018-04-30 at 17:18 +0200, Jonas Ådahl wrote:
 
On Wayland, you should use the API provided by xdg-desktop-portal:
org.freedesktop.portal.ScreenCast. It is not directly related to X11
though, and should work the same no matter what windowing system you
use. Read more about it here:
 
https://wiki.gnome.org/Projects/Mutter/RemoteDesktop
 
Thanks. That looks reasonable to implement, at least for full-screen
sharing. I'll come back to individual windows later. If I update to
Fedora 28 do all those instructions about having to rebuild stuff for
myself and enable the features go away?
 
Right, no need to rebuild anything.
 
 $ gsettings get org.gnome.mutter experimental-features
['screen-cast', 'remote-desktop']
 $ python3 gnome-screen-cast.py 
Traceback (most recent call last):
  File "gnome-screen-cast.py", line 51, in 
    session.Start(dbus_interface=screen_cast_session_iface)
  File "/usr/lib64/python3.6/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib64/python3.6/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Failed: Failed to start screen cast: Couldn't 
connect pipewire remote

Ah, it works if I manually start /usr/bin/pipewire. Is that supposed to
get started automatically? Is my client (Pidgin) expected to start it
if needed? Or should I check if it's running, and just not offer screen
sharing functionality if it isn't?  

Attachment: smime.p7s
Description: S/MIME cryptographic signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]