Hey guys! So I am currently playing around with the program and I found out that screen sharing is not working properly. I have spent a lot of time on debugging but I couldnt really figure out how to fix the problem.
I use Arch Linux with the 6.18.2-arch2-1 Kernel and Sway.
What I did:
- Open Jami.
- Call a friend or join a friends call.
- Clicking on Screenshare button.
- Nothing happens. Windows for screen sharing becomes purely dark.
When looking at the logs of Jami I find the following:
default [1767060629700][WRN][7f6414d10740]: Cannot find dbus interface for screen saver
[libopus @ 0x7f63b01a9440] No bit rate set. Defaulting to 96000 bps.
default [1767060652485][INF][7f6414d10740]: Asking for monitor…
default [1767060652506][INF][7f6414d10740]: Monitor selected, setting up screencast
[AVFilterGraph @ 0x7f6310001180] No such filter: ‘pipewiregrab’
[AVFilterGraph @ 0x7f6310001180] Error processing filtergraph: Filter not found
default [1767060652593][WRN][7f6414d10740]: Aborting: Failed to create screencast session, denied or canceled by user
default [1767060652593][INF][7f6414d10740]: Unable to share screen: permission denied
[libopus @ 0x7f63b80c4040] No bit rate set. Defaulting to 96000 bps.
default [1767060661838][WRN][7f6414d10740]: Aborting: Failed to create screencast session, denied or canceled by user
default [1767060661838][INF][7f6414d10740]: Unable to share screen: permission denied
default [1767060664456][WRN][7f6414d10740]: Aborting: Failed to create screencast session, denied or canceled by user
default [1767060664456][INF][7f6414d10740]: Unable to share screen: permission denied
It looks like the portal is not set up correctly. But then looking at the portals, I get this:
● xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
Active: active (running) since Tue 2025-12-30 19:17:23 CET; 2h 44min ago
Invocation: 2cb3d3646ba942cc8bf25b275f03db90
Main PID: 40570 (xdg-desktop-por)
Tasks: 6 (limit: 18982)
Memory: 4.1M (peak: 5.8M)
CPU: 77ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal.service
└─40570 /usr/lib/xdg-desktop-portal
Dec 30 19:17:56 BigR2D2 /usr/lib/xdg-desktop-portal[40570]: g_variant_new_variant: assertion ‘value != NULL’ failed
Dec 30 19:17:56 BigR2D2 /usr/lib/xdg-desktop-portal[40570]: g_variant_get_type: assertion ‘value != NULL’ failed
Dec 30 19:17:56 BigR2D2 /usr/lib/xdg-desktop-portal[40570]: g_variant_type_is_subtype_of: assertion ‘g_variant_type_check (type)’ failed
Dec 30 19:17:56 BigR2D2 /usr/lib/xdg-desktop-portal[40570]: g_variant_builder_add_value: assertion ‘!GVSB(builder)->expected_type || g_variant_is_of_type (value, GVSB(builder)->expected_type)’ failed
Dec 30 19:17:56 BigR2D2 /usr/lib/xdg-desktop-portal[40570]: g_variant_builder_end: assertion ‘GVSB(builder)->offset >= GVSB(builder)->min_items’ failed
Dec 30 19:17:56 BigR2D2 /usr/lib/xdg-desktop-portal[40570]: g_variant_get_type: assertion ‘value != NULL’ failed
Dec 30 19:17:56 BigR2D2 /usr/lib/xdg-desktop-portal[40570]: g_variant_type_is_subtype_of: assertion ‘g_variant_type_check (type)’ failed
Dec 30 19:17:56 BigR2D2 /usr/lib/xdg-desktop-portal[40570]: g_variant_builder_add_value: assertion ‘!GVSB(builder)->expected_type || g_variant_is_of_type (value, GVSB(builder)->expected_type)’ failed
Dec 30 19:18:09 BigR2D2 /usr/lib/xdg-desktop-portal[40570]: A backend call failed: Cannot allocate memory
Dec 30 19:18:09 BigR2D2 /usr/lib/xdg-desktop-portal[40570]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: Unknown object ‘/org/freedesktop/portal/desktop/session/1_619/pipewiregrab’.
For for the wlr portal:
systemctl status --user xdg-desktop-portal-wlr
○ xdg-desktop-portal-wlr.service - Portal service (wlroots implementation)
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-wlr.service; static)
Active: inactive (dead)
Dec 30 19:00:36 BigR2D2 xdg-desktop-portal-wlr[34534]: 2025/12/30 19:00:36 [ERROR] - dbus: sd_bus_add_object_vtable failed: Unknown error -11
Dec 30 19:00:39 BigR2D2 xdg-desktop-portal-wlr[34534]: 2025/12/30 19:00:39 [ERROR] - dbus: sd_bus_add_object_vtable failed: Unknown error -11
Dec 30 19:08:26 BigR2D2 xdg-desktop-portal-wlr[34534]: 2025/12/30 19:08:26 [ERROR] - dbus: sd_bus_add_object_vtable failed: Unknown error -11
I have looked at my configuration files under /usr/share/xdg-desktop-portal/ but everything seems fine there. All the necessary variables for XDG are also set correctly.
Does somebody have a clue? Or is it maybe a bug in the software?
After consulting with a friend who still uses X11, Screen sharing is working there.