Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P pyxdg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 14
    • Issues 14
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xdg
  • pyxdg
  • Merge requests
  • !13

Add xdg-user-dirs

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Elsie Hupp requested to merge elsiehupp/pyxdg:user-dirs into master Aug 26, 2021
  • Overview 2
  • Commits 1
  • Changes 4

Fixes #4.

Adapted from xdg-user-dir-lookup.

Notes:

  • This does not include unit tests (as xdg-user-dirs did not include them, either), but it basically seems to work.
  • I've made this a separate merge request from !12 because one doesn't depend on the other.

I see that you (@takluyver) have commented that you aren't interested in adding new features. The functionality I'm adding here is not core, per se, but:

  • it's directly based on an existing XDG implementation also hosted on this Gitlab,
  • it's been an open Issue for over a decade, and
  • this repository is in some sense "official", being in the xdg group on the Freedesktop Gitlab, rather than on your personal GitHub account,

...so it seems a bit... problematic to shut down major updates.

FWIW a more "open" approach might be to host the Python reference implementations of the various XDG standards individually alongside the C reference implementations where they exist. (Alternately, some of the implementations could probably be incorporated upstream into the Python standard library.)

Personally I would just rather not have to reinvent the wheel when trying to follow XDG standards, and being able to import reference implementations from a standard library of some sort seems more robust than copying and pasting code.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: user-dirs