Skip to content

Linux - separate storage of cache, partitions & config #2362

@phoehnel

Description

@phoehnel

Avoid duplicates

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issues tracker for a bug report similar to mine, in vain

Ferdium Version

7.1.1

What Operating System are you using?

Other Linux

Operating System Version

Linux Mint 22.3

What arch are you using?

x64

Last Known Working Ferdium version

No response

Expected Behavior

  • The local storage of the Ferdium-App on Linux should be separated into the XDG-Base-Directories defined in the XDG-Documentation.
  • That way e.g. Backup-Tools that follow the Standard and exclude cached-dirs, can Backup the Ferdium configuration without bloating the backup with caches.

Possible Split:

Current-Path Suggested-Path
~/.config/Ferdium/partitions $XDG_DATA_HOME/Ferdium
~/.config/Ferdium/*Cache $XDG_CACHE_HOME/Ferdium
~/.config/Ferdium/config Stay where it is

Actual Behavior

  • All Data, including cache and partitions, is stored in $XDG_CONFIG_HOME (~/.config/Ferdium).
  • On a 1 day old Ferdium Install with 5 Services this can lead to over 1G folder size already.
  • Backup tools normally include ~/.config which bloats the backup.
du -h --max-depth=1 .config/Ferdium | sort -h
8,0K	.config/Ferdium/blob_storage
8,0K	.config/Ferdium/Crashpad
16K	.config/Ferdium/config
24K	.config/Ferdium/Session Storage
28K	.config/Ferdium/Local Storage
36K	.config/Ferdium/Code Cache
64K	.config/Ferdium/Shared Dictionary
180K	.config/Ferdium/recipes
300K	.config/Ferdium/DawnGraphiteCache
300K	.config/Ferdium/DawnWebGPUCache
720K	.config/Ferdium/GPUCache
7,0M	.config/Ferdium/Dictionaries
19M	.config/Ferdium/Cache
1,1G	.config/Ferdium
1,1G	.config/Ferdium/Partitions

Steps to reproduce

  1. Install Ferdium, Add & Configure Services WhatsApp, iCloud, OneNote, GitLab & OpenAI
  2. Use for a day
  3. Examine storage use of ~/.config/Ferdium

Debug link

No response

Screenshots

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions