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

            Bug ID: 527532
           Summary: Spectacle does not copy the picture to the clipboard
                    following the "file name" setting
    Classification: Applications
           Product: Spectacle
      Version First 24.12.3
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 197449
  --> https://bugs.kde.org/attachment.cgi?id=197449&action=edit
What happens when pasted in program without mime-sniffing capabilities

DESCRIPTION
Title.

Instead of copying the image buffer to the clipboard using the file name and
format set in the settings, it generates a 40 bytes long string, with no
extension, and uses that as the destination filename.

When you try to paste that image buffer with no name, which also causes it to
have no extension, it makes programs that have no mime sniff ability (like
WhatsApp) to fail to recognize such paste as a picture.

Because the buffer has no file name, trying to paste it in the desktop also
fails with error code 160.

STEPS TO REPRODUCE
1. Enable "copy to clipboard" in Spectacle settings.
2. Take a screenshot in whatever mode (I use rectangular crop)
3. Once copied, try to paste in the desktop.
4. Try to paste it on a website that requires pictures (WhatsApp and Imgur are
able to reproduce this)

OBSERVED RESULT
WhatsApp fails to identify the file format
Imgur errors out: Sorry, you can't upload that type of file.
Cannot copy to the desktop: error 160

All because the file has no extension or proper MIME

EXPECTED RESULT
None of the above should fail identifying the proper format

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
KDE Plasma Version: 6.8.0
KDE Frameworks Version: 6.31.0
Qt Version: 6.12.0

ADDITIONAL INFORMATION

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

Reply via email to