elementary / screenshot

Screenshot tool designed for elementary OS
https://elementary.io
GNU Lesser General Public License v3.0
83 stars 21 forks source link

Screenshot won't save with slash in file name #245

Closed PhilippeMorere closed 1 year ago

PhilippeMorere commented 2 years ago

What Happened?

When saving a screenshot and putting a slash "/" in the filename, an error is thrown and the screenshot is not saved (and lost!). A different behaviour of warning the user or removing the slash character would be better.

Steps to Reproduce

  1. Take a screenshot
  2. save it with file name "hello/world"

Expected Behavior

A different behaviour of warning the user or removing the slash character would be better. Additionally, the screenshot should not be lost if this error happens.

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

danirabbit commented 2 years ago

Thanks for finding this issue!

I think probably the proper thing to do would be to: