Skip to content

Extension saves data in cache folder #213

@MoustaphaDev

Description

@MoustaphaDev

Describe the bug

After deleting the ~/.cache folder to debug some issues I had on my pc—unrelated with the extension—I quickly realized to my horror that my years-long clipboard history was gone. I cannot describe the frustration this has caused.

Generally data in the cache directory should be considered expendable. The purpose of the cache is to store temporary, locally-generated data that can be regenerated.

I strongly urge a change of the storage location for the persistent clipboard history database from $/.cache/clipboard-history@alexsaveau.dev to a more appropriate directory, such as $/.local/share/clipboard-history@alexsaveau.dev, or even better $/.local/state/clipboard-history@alexsaveau.dev, which is the intended location for persistent user data according to the XDG Base Directory Specification.

How To Reproduce

  • Remove cache folder
  • History is gone!

Versions

GNOME Shell 49.2
GCH Version: 47

Additional context (if a crash, provide stack trace)

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions