https://bugs.kde.org/show_bug.cgi?id=509290

            Bug ID: 509290
           Summary: Potential data loss when editing with "Quit after
                    manual Save or Copy" enabled
    Classification: Applications
           Product: Spectacle
      Version First 6.4.4
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: critical
          Priority: NOR
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY
Spectacle got a huge redesign in version 6.4, and the option "Quit after manual
Save or Copy" was enabled by default. However, this is still effective in
editing mode, which may cause potential data loss, so I reported the severity
as critical. For example, sometimes I would like to add some text to a
screenshot. After adding the text, I might want to copy that text with Ctrl+C.
However, if I fail to select the text before pressing Ctrl+C for some reason,
then the whole screenshot is copied, and, whoosh, Spectacle is gone. (Actually,
this is based on a real story that happened to me. Sad.)

STEPS TO REPRODUCE
1. Open Spectacle, and make sure the option "Quit after manual Save or Copy" is
enabled (which should be the default behavior after upgrading to version 6.4)
2. Make an arbitrary screenshot and press Enter
3. Click on "Edit..." to enter edit mode
4. Do some arbitrary editing
5. Press Ctrl+C without selecting any text

OBSERVED RESULT
The whole screenshot is copied and Spectacle quits.

EXPECTED RESULT
There should be some warning when Spectacle is about to quit in the edit mode,
or "Quit after manual Save or Copy" should not be enabled by default.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.16.3-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
There are also some other ways to trigger data loss, but these scenarios are
more unlikely to happen than the behavior described above. For example,
pressing the PrintScreen key in the edit mode.

Additionally, if you press Ctrl+C in the direct edit mode (i.e. draw directly
without pressing Enter after taking the screenshot), then the edit mode is
forced to be quitted, resulting in a loss in edit history, even when "Quit
after manual Save or Copy" is disabled. Actually, when doing complicated
editing, I never use the direct edit mode, so I am not affected by this, but
some other people might be affected.

The are some cases when the behaviors reported above are indeed desired. For
example, when creating a complicated LaTeX document or template, I want to make
sure that several blocks of text are visually aligned, since spacing in TeX is
also really complicated. Usually, I would take a screenshot of the document and
draw some auxiliary lines. If I find an issue in alignment, then I will edit
the source code, recompile the document, and take a new screenshot. In this
case, I don't need to preserve anything at all. Therefore, it is better to add
an option to select whether the warning is enabled. However, in my opinion, the
default option state should be as safe as possible.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to