Open valenotary opened 4 weeks ago
Scap currently only works for wayand compositors that implements the ScreenCast portal. If you are using X11 (can be checked with echo $XDG_SESSION_TYPE
), scap won't work.
Ah thanks for the insight! That makes sense. Is there no like... Xorg equivalent we could write a backend for? E.g. Linux X11 vs Linux Wayland?
I think Linux Mint is eventually going to Wayland but not sure how long it will be until then...
I've started to implement X11 support: #124. Hopefully I will have something test ready by the end of this week.
I have an application that roughly emulates the example scap program -- I've ran it on Windows and Mac and those work fine.
I recently tried running the same example on my Linux Mint machine and it keeps panicking with the following:
Unsupported cursor mode: LinCapError { msg: "No such interface “org.freedesktop.portal.ScreenCast”" }
I'm new to Linux Mint (Linux in general), but as far as I can tell I should have all of the dependencies like pipewire and xdg-desktop-portal... If there is some other boilerplate setup I would need to make this work end-to-end, would love to know and then maybe we can also include it as a part of the README for scap linux usage.