Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recording holds wrong filename in $f #67

Open
asger-weirsoee opened this issue Nov 10, 2020 · 2 comments
Open

Recording holds wrong filename in $f #67

asger-weirsoee opened this issue Nov 10, 2020 · 2 comments

Comments

@asger-weirsoee
Copy link

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
Copy link
Author

asger-weirsoee commented Nov 10, 2020

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 :)

@dyeo
Copy link

dyeo commented Dec 21, 2021

Fixed in #77, waiting on a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants