Bug 140039 - LibreOffice does not comply with XDG Base Directory Specification
Summary: LibreOffice does not comply with XDG Base Directory Specification
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: All Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-31 18:33 UTC by Eike
Modified: 2023-09-21 03:16 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.