shutter-project / shutter

Screenshot tool for Linux
https://shutter-project.org/
GNU General Public License v3.0
502 stars 35 forks source link

Fix #613: Prevent user from setting a filename without suiting wildcards #614

Closed Photon89 closed 5 months ago

Photon89 commented 10 months ago

This checks, whether either %NN or %T (two digit number or current time) is contained in the filename setting. If not, saving the settings is aborted, an error message is shown and the settings dialog is shown again. Possibly there is a better way to make sure that Shutter will create unique filenames than checking for the two wildcards though.

elamperti commented 10 months ago

For some reason my settings broke and screenshots were being saved to the same filename over and over. This would be very helpful to avoid the issue, thanks for your PR!

Photon89 commented 10 months ago

Sorry, my bad, I forgot to request a review!

Photon89 commented 9 months ago

Any further thoughts or objections? In particular regarding how to check if the filename is (more or less) unique.