Closed ghost91- closed 3 years ago
Can you take a look at this document? Specifically items four and five? https://github.com/emersion/xdg-desktop-portal-wlr/wiki/%22It-doesn't-work%22-Troubleshooting-Checklist
Thanks for your help, I didn't see this document until know. Item 5 did the trick. Any idea why this might be necessary one one system but not the other? They are basically set up in exactly the same way for all I know.
Thanks for your help, I didn't see this document until know. Item 5 did the trick. Any idea why this might be necessary one one system but not the other? They are basically set up in exactly the same way for all I know.
No problem. Importing environment variables from sway into systemd has never been optional to avoid edge cases, but it has recently began to bite more people. As best I can guess, when WAYLAND_DISPLAY === "wayland-0"
a default value in the wayland protocol code "guesses" it correctly. If it is any other value, importing the environment is the only fix.
This is equally important a step for ensuring XDG_CURRENT_DESKTOP
is correctly set.
I have problems with
xdpw
not starting automatically. I don't really have any idea what is going on.xdg-desktop-portal
seems to start correctly and also tries to usexdpw
but thexdpw
service fails to start for some reason. I am using Arch with sway. Here are some logs:Logs from
xdg-desktop-portal
:The override of the systemd service file doesn't do anything aside from setting the log level and adding a restart delay, otherwise it's the same as the one provided by Arch:
If I start
xdpw
manually with/usr/lib/xdg-desktop-portal-wlr -r
(withxdg-desktop-portal
not running yet), everything works fine when I try to start sharing. Ifxdg-desktop-portal
is already running when I manually startxdpw
, I can't get it to work. Any idea what might be going on here? The funny thing is that this has worked fine for me in the past and suddenly stopped without me changing anything (except for installing system updates). It also works on another laptop, where I didn't do anything differently, as far as I know. Is there any more information I can provide to find out what's going on?