escrotum
escrotum copied to clipboard
Recording holds wrong filename in $f
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;

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 :)
Fixed in #77, waiting on a PR