Skip to content

XDG Base Directory Specification $XDG_RUNTIME_DIR #37

@jmschp

Description

@jmschp

Hi

First of all thank you for your project. I have learned a lot from it to build my own dot-files.

I am wondering how you manage the XDG_RUNTIME_DIR directory on a MacOS. At system/.env you do export XDG_RUNTIME_DIR="$HOME/.local/runtime # macOS does not have session lifetime directories; alt: ~/Library/Caches".

According to XDG Base Directory Specification for $XDG_RUNTIME_DIR:

The lifetime of the directory MUST be bound to the user being logged in. It MUST be created when the user first logs in and if the user fully logs out the directory MUST be removed. If the user logs in more than once they should get pointed to the same directory, and it is mandatory that the directory continues to exist from their first login to their last logout on the system, and not removed in between. Files in the directory MUST not survive reboot or a full logout/login cycle.

How do you manage this lifecycle?

I read this SO answer about a similar behavior in MacOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions