wayshot icon indicating copy to clipboard operation
wayshot copied to clipboard

Error when using slurp command from example on README

Open Serpentarius13 opened this issue 1 year ago • 4 comments

Hey, its not working with slurp =( Im getting this:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseIntError { kind: InvalidDigit }', src/wayshot.rs:65:69
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Serpentarius13 avatar Aug 23 '24 07:08 Serpentarius13

Hi, I need the invocation command, wayshot version and preferably also which branch you're on.

Shinyzenith avatar Aug 23 '24 07:08 Shinyzenith

Hi, I need the invocation command, wayshot version and preferably also which branch you're on.

Hello, thanks for the reply. Command is wayshot -s "$(slurp)". The version is 1.2.2-2 wayshot-bin from AUR

Serpentarius13 avatar Aug 26 '24 15:08 Serpentarius13

That's a pretty outdated release, can you try the wayshot AUR package instead, it is at version 1.3.1-2. If you want to make it work using the old release, the command to use is wayshot -s "$(slurp -f '%x %y %w %h')"

sooraj-satheesh avatar Aug 26 '24 16:08 sooraj-satheesh

That's a pretty outdated release, can you try the wayshot AUR package instead, it is at version 1.3.1-2. If you want to make it work using the old release, the command to use is wayshot -s "$(slurp -f '%x %y %w %h')"

Okay, thanks! Can you please update the binary release? I hate infinite cargo builds that add on when I'm doing -Syu

Serpentarius13 avatar Aug 26 '24 17:08 Serpentarius13

@CheerfulPianissimo the issue persists for version 1.3.1 but yea wayshot -s "$(slurp -f '%x %y %w %h')" works for 1.3.1

Image

noobed-max avatar Mar 21 '25 10:03 noobed-max

@CheerfulPianissimo the issue persists for version 1.3.1 but yea wayshot -s "$(slurp -f '%x %y %w %h')" works for 1.3.1

Image

I think now this problem is fixed in master, event without pass anything to slurp, it will still work

Decodetalkers avatar Mar 21 '25 11:03 Decodetalkers

yep master works without needing any params

noobed-max avatar Mar 21 '25 11:03 noobed-max