pop-os / cosmic-screenshot

Utility for capturing screenshots via XDG Desktop Portal
GNU General Public License v3.0
20 stars 8 forks source link

Panic in main.rs when calling cosmic-screenshot #10

Open ryanabx opened 5 months ago

ryanabx commented 5 months ago

All of a sudden my Fedora COSMIC image can't use cosmic-screenshot. I run it from the terminal (because I don't have printscr on my laptop (see: https://github.com/pop-os/cosmic-comp/pull/310)

and I get a panic:

thread 'main' panicked at src/main.rs:71:10: failed to receive screenshot response: Response(Cancelled)

Everything should be built to master as of a few hours ago.

This could potentially be a problem with GNOME being installed in addition to COSMIC, it might be using xdg-desktop-portal-gnome instead of cosmic's. Just a guess though

joshuamegnauth54 commented 5 months ago

cosmic-screenshot should work with different portals as long as they provide the screenshot endpoint thingy. I tried it with GNOME.

Just a hunch, but what happens when you run it like so:

cosmic-screenshot --interactive=false --modal=false

Check ~/Pictures afterwards.

jacobgkau commented 5 months ago

I'm getting this issue on Pop!_OS 22.04 today after installing the latest updates. The PrtSc key and the plain command don't work.

jacob@serw13:~$ cosmic-screenshot
thread 'main' panicked at src/main.rs:71:10:
failed to receive screenshot response: Response(Cancelled)
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Running with --interactive=false --modal=false does work to capture the entire screen.