scap icon indicating copy to clipboard operation
scap copied to clipboard

Not working on my Linux Mint distro

Open valenotary opened this issue 1 year ago • 3 comments

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.

valenotary avatar Oct 25 '24 09:10 valenotary

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.

MAlba124 avatar Oct 26 '24 20:10 MAlba124

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...

valenotary avatar Oct 28 '24 01:10 valenotary

I've started to implement X11 support: #124. Hopefully I will have something test ready by the end of this week.

MAlba124 avatar Oct 28 '24 07:10 MAlba124