xdg-prefs VS platformdirs

Compare xdg-prefs vs platformdirs and see what are their differences.

xdg-prefs

A GUI program to view and change your default programs' preferences (which program should open which type of file) using the XDG Specifications (by rchaput)

platformdirs

A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". (by platformdirs)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
xdg-prefs platformdirs
1 3
22 492
- 9.1%
0.0 8.1
over 1 year ago 4 days ago
Python Python
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

xdg-prefs

Posts with mentions or reviews of xdg-prefs. We have used some of these posts to build our list of alternatives and similar projects.

platformdirs

Posts with mentions or reviews of platformdirs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-06.
  • GrandTourer – a CLI tool for easily launching applications on macOS
    2 projects | /r/Python | 6 Dec 2023
    Also, I saw that you're trying to find the app locations yourself. You may wanna use this instead: https://github.com/platformdirs/platformdirs
  • Use the XDG Base Directory Specification
    9 projects | news.ycombinator.com | 23 Mar 2023
    Start with pythons “projectdirs”, which refuses to allow mac systems to use XDG or at least have that option.

    https://github.com/platformdirs/platformdirs/issues/4

  • Help with yt-dlp config setup (mac)
    1 project | /r/youtubedl | 10 Feb 2023
    I did my own research on what XDG_CONFIG_HOME means within macOS when setting up yt-dlp for macOS 13 (Ventura) but I couldn't find a very definitive answer. I found a thread on GitHub where someone says "Apple does not follow the XDG spec, so at best what I've seen is people roughly mapping it..." and that goes down too deep a rabbit hole for me.

What are some alternatives?

When comparing xdg-prefs and platformdirs you can also consider the following projects:

boxxy - boxxy puts bad Linux applications in a box with only their files.

xdg-ninja - A shell script which checks your $HOME for unwanted files and directories.

dotfiles - Dotfiles

Cargo - The Rust package manager

neovim - Vim-fork focused on extensibility and usability

directories-rs - a mid-level library that provides config/cache/data paths, following the respective conventions on Linux, macOS and Windows

GrandTourer - Launch applications from the terminal on MacOS