WillPower3309 / swayfx

SwayFX: Sway, but with eye candy!
MIT License
1.2k stars 47 forks source link

Add sway-portals.conf for xdg-desktop-portal >= 1.17 #226

Closed mochaaP closed 5 months ago

mochaaP commented 9 months ago

See https://src.fedoraproject.org/rpms/sway/c/30a4f85fedaeebcdcf25dbe4496bd771a777e73e, otherwise xdg-desktop-portal won't register many interfaces.

mochaaP commented 9 months ago

A temporary solution for end-users:

ln -s /usr/share/xdg-desktop-portal/wlroots-portals.conf ~/.local/share/xdg-desktop-portal/sway-portals.conf
mochaaP commented 9 months ago

cc @WillPower3309 consider rebuilding this in Copr

saber-nyan commented 9 months ago

Yup, debugging with official xdg-desktop-portal-wlr guide led me here...

What's weird is that on Arch Linux the screen sharing worked for a while, but stopped after the swayfx update.

Unfortunately, the mochaaP's workaround didn't work for me.

WillPower3309 commented 8 months ago

Yup, debugging with official xdg-desktop-portal-wlr guide led me here...

What's weird is that on Arch Linux the screen sharing worked for a while, but stopped after the swayfx update.

Unfortunately, the mochaaP's workaround didn't work for me.

Did you end up finding a fix?

WillPower3309 commented 7 months ago

Fixed in aur with https://github.com/WillPower3309/swayfx/pull/239

mochaaP commented 7 months ago

Yup, debugging with official xdg-desktop-portal-wlr guide led me here...

What's weird is that on Arch Linux the screen sharing worked for a while, but stopped after the swayfx update.

Unfortunately, the mochaaP's workaround didn't work for me.

You need to add DesktopNames=sway to %datadir%/wayland-session/swayfx.desktop. Upstream rejected this in https://github.com/swaywm/sway/pull/4876

dongdigua commented 6 months ago

consider rebuild +1 newbie users (like me) probably don't know that the problem is related to sway-portals.conf, so they may not find this issue ( (I'm here thanks to #archlinux-cn)