resurrecting-open-source-projects / scrot

SCReenshOT - command line screen capture utility
Other
495 stars 49 forks source link

lack of information when scrot renames the output file because it already exists #350

Closed guijan closed 1 year ago

guijan commented 1 year ago

Okay, the default is to not overwrite, but this really should error print an informative message that the output filename was changed instead of silently succeeding as if nothing unexpected happened:

touch test.jpg
scrot test.jpg

The script above will create a _test000.jpg file.

guijan commented 1 year ago

Man, sorry, I should stop making bug reports sleepy.

N-R-K commented 1 year ago

This is something that tripped me up a couple times too. IMO we should really print something to stderr if we decide to change the output file - most other programs that have similar behaviour seem to print something about not overwriting the existing file.

guijan commented 1 year ago

Reopened.