shutter-project / shutter

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

Implement filename checking on confirmation #524

Open Photon89 opened 1 year ago

Photon89 commented 1 year ago

Brief summary of issue

Currently the filename is being checked for invalid characters while typing, it should also be checked on confirming to catch pasted text. Also there should be a check, whether the filename is empty.

Steps to reproduce the issue

  1. Rename a screenshot
  2. Paste text including a slash
  3. Shutter will throw a cryptic error

Error output

Bildschirmfoto_2022-12-11_12-28-08

Extra information, such as Shutter version, display server in use (Xorg or Wayland), operating system and ideas for how to solve:

See #496 and #497