pop-os / xdg-desktop-portal-cosmic

GNU General Public License v3.0
27 stars 23 forks source link

Fix passing fd to pipewire in example. #50

Closed hgaiser closed 1 month ago

hgaiser commented 1 month ago

This change is incorrect, as Debug is implemented as "OwnedFd({fd})" (meaning "fd={fd:?}" becomes "fd=OwnedFd(##)".

On a related note, I can't get the example to work, neither in Gnome, nor in COSMIC (both on ArchLinux). In both cases I get:

Error: Failed to link elements 'bin0' and 'bin1'

Interestingly in Gnome I get a dialog for choosing what to cast, but not in COSMIC. Perhaps this is not implemented yet, but I thought it was worth mentioning. If I set the sink to filesink location=out.bin I get "Error: Element failed to change its state", which has got me a bit stumped (GST_DEBUG also show no such pad 'sink' in element "pipewiresrc0"). Let me know if this is more of a ashpd issue though.

Apologies if I am doing something clearly wrong, I have only started using xdg-desktop-portal and gstreamer since yesterday :).