textual icon indicating copy to clipboard operation
textual copied to clipboard

Invalid default screenshot file name in Windows.

Open kmonson opened this issue 2 years ago • 1 comments

Default screenshot filename format in App.save_screenshot (specifically time_format) results in colons in the default file name. This is invalid in Windows.

OSError: [Errno 22] Invalid argument: './textual demo 2022-10-23 16:00:23 341765.svg'

An additional replace call here is probably needed: https://github.com/Textualize/textual/blob/main/src/textual/app.py#L538

kmonson avatar Oct 23 '22 23:10 kmonson

Good catch, thanks.

davep avatar Oct 24 '22 04:10 davep

Did we solve your problem?

Glad we could help!

github-actions[bot] avatar Oct 29 '22 19:10 github-actions[bot]