Skip to content

Respect XDG Base Directory Specification #26

Closed

Description

@philippe-granet

Like in Mise tool: https://mise.jdx.dev/directories.html#config-mise

skillshare config dir should respect XDG_CONFIG_HOME env var.
If XDG_CONFIG_HOME exist, config file should be ${XDG_CONFIG_HOME}/skillshare/config.yaml
else <home>/.config/skillshare/config.yaml

Activity

  1. runkids commented on Feb 15, 2026

    @runkids
    Owner

    Thanks for the suggestion, @philippe-granet! 🚀
    This makes sense — I’ll look into supporting XDG_CONFIG_HOME with the fallback to ~/.config/skillshare/config.yaml.

    Thanks again for the reference to mise’s implementation, that’s a helpful example!

  2. self-assigned this
    on Feb 15, 2026
  3. runkids commented on Feb 16, 2026

    @runkids
    Owner

    This has been implemented in v0.13.0! 🎉

    skillshare now fully respects the XDG Base Directory Specification:

    • XDG_CONFIG_HOME → config + skills (fallback: ~/.config/skillshare/)
    • XDG_DATA_HOME → backups + trash (fallback: ~/.local/share/skillshare/)
    • XDG_STATE_HOME → logs (fallback: ~/.local/state/skillshare/)
    • XDG_CACHE_HOME → UI cache (fallback: ~/.cache/skillshare/)

    Migration from the old layout is automatic on first run — no manual steps needed.

    Thanks again for the suggestion, @philippe-granet!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions