Skip to content

Use $XDG_STATE_HOME location to keep resurrect files, not $XDG_DATA_HOME #542

@mikkoi

Description

@mikkoi

We should keep the state files in $XDG_STATE_HOME location, default $HOME/.local/state, not in the $XDG_STATE_HOME dir.

The $XDG_STATE_HOME contains state data that should persist between (application) restarts, but that is not important or portable enough to the user that it should be stored in $XDG_DATA_HOME. It may contain:

  • actions history (logs, history, recently used files, …)

  • current state of the application that can be reused on a restart (view, layout, open files, undo history, …)

https://specifications.freedesktop.org/basedir-spec/latest/#variables

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions