emersion / xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots
MIT License
591 stars 56 forks source link

Compositor doesn't support zwlr_screencopy_manager_v1! #172

Closed anilgurses closed 2 years ago

anilgurses commented 2 years ago

Hi everyone, I've encountered the error I wrote below. Failed to start Portal service (wlroots implementation). I tried to run the xdg-desktop-portal-wlr with debug mode and the log was

$ /usr/lib/xdg-desktop-portal-wlr --loglevel=DEBUG
2021/12/01 17:09:13 [DEBUG] - config: outputname:  (null)
2021/12/01 17:09:13 [DEBUG] - config: max_fps:  30.000000
2021/12/01 17:09:13 [DEBUG] - config: exec_before:  (null)
2021/12/01 17:09:13 [DEBUG] - config: exec_after:  (null)
2021/12/01 17:09:13 [DEBUG] - config: chooser_cmd: slurp -f %o -o
2021/12/01 17:09:13 [DEBUG] - config: chooser_type: simple
2021/12/01 17:09:13 [DEBUG] - dbus: connected
2021/12/01 17:09:13 [DEBUG] - wlroots: wl_display connected
2021/12/01 17:09:13 [DEBUG] - pipewire: pw_loop created
2021/12/01 17:09:13 [DEBUG] - pipewire: establishing connection to core
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register wl_compositor  (Version: 4)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zwp_tablet_manager_v2  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zwp_keyboard_shortcuts_inhibit_manager_v1  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register xdg_wm_base  (Version: 3)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zwlr_layer_shell_v1  (Version: 3)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zxdg_decoration_manager_v1  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register wp_viewporter  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register wl_shm  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: |-- registered to interface wl_shm (Version 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register wl_seat  (Version: 7)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zwp_pointer_gestures_v1  (Version: 2)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zwp_pointer_constraints_v1  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register wl_data_device_manager  (Version: 3)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zwlr_data_control_manager_v1  (Version: 2)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zwp_primary_selection_device_manager_v1  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register org_kde_kwin_idle  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zwp_idle_inhibit_manager_v1  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register org_kde_plasma_shell  (Version: 6)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register org_kde_kwin_appmenu_manager  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register org_kde_kwin_server_decoration_palette_manager  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register org_kde_plasma_virtual_desktop_management  (Version: 2)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register org_kde_kwin_shadow_manager  (Version: 2)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register org_kde_kwin_dpms_manager  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register org_kde_kwin_server_decoration_manager  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register kde_output_management_v2  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zxdg_output_manager_v1  (Version: 3)
2021/12/01 17:09:13 [DEBUG] - wlroots: |-- registered to interface zxdg_output_manager_v1 (Version 3)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register wl_subcompositor  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zxdg_exporter_v2  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zxdg_importer_v2  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register xdg_activation_v1  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zwp_relative_pointer_manager_v1  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register wl_drm  (Version: 2)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zwp_linux_dmabuf_v1  (Version: 3)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register kde_output_device_v2  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register wl_output  (Version: 3)
2021/12/01 17:09:13 [DEBUG] - wlroots: |-- registered to interface wl_output (Version 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zwp_text_input_manager_v2  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register zwp_text_input_manager_v3  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register org_kde_kwin_blur_manager  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register org_kde_kwin_contrast_manager  (Version: 2)
2021/12/01 17:09:13 [DEBUG] - wlroots: interface to register org_kde_kwin_slide_manager  (Version: 1)
2021/12/01 17:09:13 [DEBUG] - wayland: registry listeners run
2021/12/01 17:09:13 [DEBUG] - wayland: xdg output listeners run
2021/12/01 17:09:13 [ERROR] - Compositor doesn't support zwlr_screencopy_manager_v1!
2021/12/01 17:09:13 [DEBUG] - pipewire: disconnecting fom core
2021/12/01 17:09:13 [ERROR] - xdpw: failed to initialize screencast

I already checked the troubleshooting checklist and I couldn't run the software. I've tried everything but there is no hope. I assume that this is not completely related to xdg-desktop-portal-wlr. However, I would like to learn that if you guys have a workaround for this problem.

System Information

$ uname -r
5.15.5-arch1-1
$ kf5-config --version
Qt: 5.15.2
KDE Frameworks: 5.88.0
kf5-config: 1.0
$ env | grep '^WAYLAND_DISPLAY='
WAYLAND_DISPLAY=wayland-0
$ < "/proc/$(pidof xdg-desktop-portal)/environ" tr '\0' '\n' | grep '^XDG_CURRENT_DESKTOP='
XDG_CURRENT_DESKTOP=KDE

Also, this is how I installed xdg-desktop-portal-wlr.

$ yay -S pipewire-git xdg-desktop-portal-git xdg-desktop-portal-wlr-git
emersion commented 2 years ago

xdg-desktop-portal-wlr will not work on KDE. Use xdg-desktop-portal-kde instead.