An open API service indexing awesome lists of open source software.

https://github.com/jassielof/xdg-zig

XDG Desktop file format library for Zig.
https://github.com/jassielof/xdg-zig

deserializer desktop desktop-entry entry library parser serializer xdg xdg-desktop-entry zig

Last synced: about 1 month ago
JSON representation

XDG Desktop file format library for Zig.

Awesome Lists containing this project

README

          

# XDG for Zig

XDG libraries for Zig

## XDG Desktop Entry

XDG Desktop Entry file format library for Zig.

### References for XDG Desktop Entry

Revised against version 1.5 published on 2020-04-27.

-
-
-

## XDG Base Directory

Cross-platform implementation of the XDG Base Directory specification.

Current behavior highlights:

- Supports XDG_DATA_HOME, XDG_CONFIG_HOME, XDG_STATE_HOME, XDG_CACHE_HOME,
XDG_DATA_DIRS, and XDG_CONFIG_DIRS.
- Relative values in XDG environment variables are treated as invalid and
ignored.
- XDG_DATA_DIRS and XDG_CONFIG_DIRS use the platform PATH separator:
- Linux/macOS: :
- Windows: ;
- XDG_RUNTIME_DIR rules:
- Absolute value is accepted.
- Relative value is rejected.
- On Linux, when unset or invalid, fallback is /run/user/$UID.
- On non-Linux platforms, unset or invalid resolves to null.

Module location:

- src/lib/base_directory/root.zig

Base Directory specification reference:

-
-

## Credits

- [PyXDG](https://www.freedesktop.org/wiki/Software/pyxdg/)