resurrecting-open-source-projects / scrot

SCReenshOT - command line screen capture utility
Other
512 stars 51 forks source link

non-integer delay is not accepted #213

Closed a1ea321 closed 1 year ago

a1ea321 commented 1 year ago

scrot -d 0.5 stopped working. It spits out: scrot: option --delay: '0.5' is not a number

I believe this is after I updated scrot through the package manager in Artix.

I git cloned and compiled scrot (tag:1.8.1). The problem is there. Then I tried the scrot obtained through sudo apt install scrot. That one works.

If you have nothing against restoring this functionality, please do it or say "do it" to me.

daltomi commented 1 year ago

Hi @a1ea321

Yeah, that doesn't look good; it's confusing. I don't know where I've seen floating point used before but a value like that is just 0 (v1.7)

The improvement we could make is to indicate, via manpage or error message, that scrotdoes not use floating point numbers in any of its options.

a1ea321 commented 1 year ago

So you're telling me... All this time I've been using scrot -d 0.5 but the delay did not have any effect x-D Not my first time cargo cult programming.

I added this for a full screen screenshot triggered by dmenu based command launcher. I vaguely remember the 0.5 being necessary for dmenu to get out of the way. (1 second would have been too long of a wait.)

But now, I can't reproduce that issue. Zero delay seems enough time for dmenu.

Thanks!