Open nelaaro opened 2 years ago
Does this issue still exist for you?
I've experienced it a couple of days ago.
I'm currently experiencing this on firefox and brave. Very annoying.
I'm running wayfire on archlinux.
For anyone wondering: xdg-desktop-portal-wlr 0.6.0 doesn't work for me, while 0.5.0 works
Hi! I have just hit this too. I can't compile xdg-desktop-portal-wlr 0.6.0 on Debian 11 (too old mesa version if I understand correctly). So, I am using the 0.5.0 version. My screencast was broken not sure since when (I don't use it often).
My problem was described in the 6. of https://github.com/emersion/xdg-desktop-portal-wlr/wiki/%22It-doesn't-work%22-Troubleshooting-Checklist:
< "/proc/$(pidof xdg-desktop-portal)/environ" tr '\0' '\n' | grep '^XDG_CURRENT_DESKTOP='
Was empty (but xdg-desktop-portal is running).
Here is how I solved it:
diff --git a/sway/config.d/50-systemd-user.conf b/sway/config.d/50-systemd-user.conf
index af204fb..575c3ee 100644
--- a/sway/config.d/50-systemd-user.conf
+++ b/sway/config.d/50-systemd-user.conf
@@ -6,4 +6,4 @@
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
- dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
+ dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway
My ~/.config/sway/config
file contains include /etc/sway/config.d/*
.
I received the same error when trying to screencast. I went through the entire troubleshooting guide with no issue.
GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop
I was able to solve the issue simply by sym linking the wlr.portal file to wherever gtk.portal was being found:
ln -s /usr/local/share/xdg-desktop-portal/portals/wlr.portal /usr/share/xdg-desktop-portal/portals/wlr.portal
So hopefully that's helpful information. It just seems like in this scenario, /usr/local/share isn't in the list of places xdg-desktop-portal checks for portals for whatever reason. I realized this when everything seemed to be working, but xdg-destop-portal --replace --verbose
showed itself loading gtk.portal, but not wlr.portal.
This is relevant to xdg-desktop-portal 1.18.2 and xdg-desktop-portal-wlr 0.7.1
Hi, I am getting the following error.
base_capturer_pipewire.cc(820)] Failed to create a screen cast session: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop
I have run through the
https://github.com/emersion/xdg-desktop-portal-wlr/wiki/%22It-doesn't-work%22-Troubleshooting-Checklist
and will show the output below.I am lost as to what else I can do to troubleshoot or investigate these issues. Please let me know what I can do to provide further information
A simple test using google chrome. using the webrtc test.
When I run google chrome.
Here is a complete rundown of the troubleshooting guide.
My login manager Greetd also starts and xdg-desktop-portal so there are two running one for the logging manager and then one for my sway desktop session.
The screenCast is included in the installation of xdg
Sway is started with the dbus-run-session.
Here is the rest of the troubleshooting guide output.