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.
- Host: GitHub
- URL: https://github.com/jassielof/xdg-zig
- Owner: jassielof
- License: mpl-2.0
- Created: 2025-12-23T23:16:19.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-04-16T23:04:48.000Z (about 1 month ago)
- Last Synced: 2026-04-17T01:13:49.759Z (about 1 month ago)
- Topics: deserializer, desktop, desktop-entry, entry, library, parser, serializer, xdg, xdg-desktop-entry, zig
- Language: Zig
- Homepage: https://jassielof.github.io/xdg-zig/
- Size: 60.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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/)