escrotum icon indicating copy to clipboard operation
escrotum copied to clipboard

Recording holds wrong filename in $f

Open asger-weirsoee opened this issue 5 years ago • 2 comments

When executing

escrotum -sr '%M%S.webm' -e 'echo $f'

It seems like it captures the timestamp, this is used for saving the file, but the -e parameter does not hold the old value of the timestamp, and thus returns the current timestamp instead of the filename.

This results in a different filename being printed from the one that is actually saved, see image; image

asger-weirsoee avatar Nov 10 '20 11:11 asger-weirsoee

In the meantime, if there are anyone else who needs the filename, a dirty fix could be

TIME=$(date +%Y-%m-%d_%H%M%S); echo ""$(escrotum -sr '~/Videos/screenrecordings/'$TIME'_$wx$h_escrotum.webm' -e 'echo $f' | grep 'escrotum')

Will use a a env var TIME to make echo $f print the right time :)

asger-weirsoee avatar Nov 10 '20 12:11 asger-weirsoee

Fixed in #77, waiting on a PR

dyeo avatar Dec 21 '21 05:12 dyeo