Provides an implementation of the XDG Base Directory Specification. The specification defines a set of standard paths for storing application files, including data and configuration files. For portability and flexibility reasons, applications should use the XDG-defined locations instead of hardcoding paths. The package also includes the locations of well-known user directories, as well as other common directories such as fonts and applications. The current implementation supports most flavors of Unix, Windows, macOS and Plan 9. On Windows, where XDG environment variables are not usually set, the package uses Known Folders as defaults. Therefore, appropriate locations are used for common folders which may have been redirected.

Features

  • The current implementation supports most flavors of Unix, Windows, macOS and Plan 9
  • Documentation available
  • The package defines sensible defaults for XDG variables which are empty or not present in the environment
  • On Unix-like operating systems, XDG environment variables are tipically defined
  • XDG user directories
  • This project is licensed under the MIT license

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow xdg

xdg Web Site

You Might Also Like
Red Hat Enterprise Linux on Microsoft Azure Icon
Red Hat Enterprise Linux on Microsoft Azure

Deploy Red Hat Enterprise Linux on Microsoft Azure for a secure, reliable, and scalable cloud environment, fully integrated with Microsoft services.

Red Hat Enterprise Linux (RHEL) on Microsoft Azure provides a secure, reliable, and flexible foundation for your cloud infrastructure. Red Hat Enterprise Linux on Microsoft Azure is ideal for enterprises seeking to enhance their cloud environment with seamless integration, consistent performance, and comprehensive support.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of xdg!

Additional Project Details

Programming Language

Go

Related Categories

Go Libraries

Registered

2024-06-03