Bug 140039

Summary: LibreOffice does not comply with XDG Base Directory Specification
Product: LibreOffice Reporter: Eike <documentfoundation>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: enhancement    
Priority: medium    
Version: 7.0.4.2 release   
Hardware: All   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:

Description Eike 2021-01-31 18:33:52 UTC
Description:
LibreOffice on *nix systems stores runtime files, cache, extensions and much more in the `.config/libreoffice/4/user/` directory instead of the correct locations in `$XDG_RUNTIME_DIR`, `$XDG_CACHE_HOME` and `$XDG_DATA_HOME`.

See https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

`~/.config` or `$XDG_CONFIG_HOME` is reserved for configuration data only. Store runtime files (that can be removed after log-out) in `$XDG_RUNTIME_DIR`, cached data in `$XDG_CACHE_HOME` and persistent user specific data in `$XDG_DATA_HOME`.

Steps to Reproduce:
1.Install LibreOffice
2.Start LibreOffice
3.Watch LibreOffice flood your .config directory.

Actual Results:
LibreOffice creates the `$XDG_CONFIG_HOME/libreoffice/4/user/` directory and stores *everything* user specific there.

Expected Results:
LibreOffice creates `$XDG_CONFIG_HOME/libreoffice/`, `$XDG_RUNTIME_DIR/libreoffice/`, `$XDG_CACHE_HOME/libreoffice/`, `$XDG_DATA_HOME/libreoffice/` and files according to their lifetime and redundancy (as described in the XDG Base Directory Specification).


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.4.2
Build ID: 00(Build:2)
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: en-IE (en_IE.UTF-8); UI: en-US
7.0.4-3
Calc: threaded
Comment 1 Faisal 2023-09-16 18:05:52 UTC
Marking this as enhancement because it impact the functioning of LO.