Skip to content

Clipboard corrupted after pasting LibreOffice cells: Text/HTML layer is removed, leaving only Image #498

@deciorf

Description

@deciorf

Description
The ZapZap application on Linux corrupts the system clipboard. When content with multiple data formats (like copied spreadsheet cells) is on the clipboard, simply activating the ZapZap window replaces all rich data with a single image layer. This breaks paste functionality for all other applications, not just one.

Steps to Reproduce

  1. Copy a range of cells from LibreOffice Calc.
  2. Click on or activate the ZapZap application window.
  3. Now, try to paste the clipboard content into another application:
    • In Telegram: Only an image can be pasted; the Esc key text-paste trick no longer works.
    • In another LibreOffice Calc spreadsheet or Writer document: An image is pasted instead of editable text or table data.
    • In a plain text editor (e.g., Gedit, mousepad): Nothing is pasted, as these applications cannot handle image data.

Expected Behavior
Activating the ZapZap window should not alter the current content of the system clipboard. Other applications should still be able to access the original, rich data formats (text, HTML, image) that were copied.

Actual Behavior
ZapZap overwrites the multi-format clipboard content with a simplified, image-only version upon window activation. This renders the clipboard useless for any application expecting text or structured data.

Evidence
The clipboard corruption is proven by comparing the output of xclip -selection clipboard -o -t TARGETS:

  • After copying from LibreOffice Calc: Contains text/html, text/plain;charset=utf-8, image/png, and other rich formats.
  • After activating ZapZap window: Only image formats remain (image/png, application/x-qt-image, etc.). All text and data formats are permanently lost.

Environment

  • Application: ZapZap (WhatsApp for Linux)
  • Application Version: 6.2.4 stable (system package)
  • OS: Ubuntu 24.04.3 LTS
  • Windowing System: X11
  • Desktop Environment: GNOME
  • Related Software: LibreOffice, Telegram Desktop, various text editors.

Additional Information

  • This is 100% reproducible. The problem occurs just by focusing the ZapZap window; no attempt to paste inside it is needed.
  • The issue persists after a complete uninstall and reinstall of the application.
  • This is a critical workflow bug, as it forces the user to paste content into all target applications before even opening ZapZap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions