| 1 |
xdg |
| 2 |
=== |
| 3 |
|
| 4 |
Package xdg provides access to the FreeDesktop.org (XDG) specs. |
| 5 |
|
| 6 |
[](https://godoc.org/github.com/rkoesters/xdg) |
| 7 |
[](https://travis-ci.org/rkoesters/xdg) |
| 8 |
[](https://goreportcard.com/report/github.com/rkoesters/xdg) |
| 9 |
|
| 10 |
Documentation |
| 11 |
------------- |
| 12 |
|
| 13 |
Documentation is available via godoc. Here are direct links to the |
| 14 |
documentation pages for each package: |
| 15 |
|
| 16 |
* [xdg](https://godoc.org/github.com/rkoesters/xdg) - Provides xdg.Open |
| 17 |
function to call `xdg-open` command. |
| 18 |
* [xdg/basedir](https://godoc.org/github.com/rkoesters/xdg/basedir) - |
| 19 |
Provides access to the xdg basedir spec. |
| 20 |
* [xdg/desktop](https://godoc.org/github.com/rkoesters/xdg/desktop) - |
| 21 |
Read desktop files (w/ localization support). |
| 22 |
* [xdg/keyfile](https://godoc.org/github.com/rkoesters/xdg/keyfile) - |
| 23 |
Provides access to xdg key file format (w/ localization support). |
| 24 |
* [xdg/trash](https://godoc.org/github.com/rkoesters/xdg/trash) - |
| 25 |
Provides access to xdg trash spec. |
| 26 |
* [xdg/userdirs](https://godoc.org/github.com/rkoesters/xdg/userdirs) - |
| 27 |
Provides access to common user directories. |
| 28 |
|
| 29 |
Testing |
| 30 |
------- |
| 31 |
|
| 32 |
Tests can be run with `go test`. |
| 33 |
|
| 34 |
The tests for the [xdg/trash](trash) package expect the trash to exist |
| 35 |
(`$XDG_DATA_HOME/Trash/files` (or `$HOME/.local/share/Trash/files` if |
| 36 |
`$XDG_DATA_HOME` is undefined)). |
| 37 |
|
| 38 |
The tests for the [xdg/userdirs](userdirs) package require the |
| 39 |
`xdg-user-dir` command. |
| 40 |
|
| 41 |
TODO |
| 42 |
---- |
| 43 |
|
| 44 |
- autostart |
| 45 |
- desktop.Launch (in progress on desktop-launch branch) |
| 46 |
- trash.New (requires checking for a "sticky bit" on the filesystem of |
| 47 |
the drive on which the trash exists; in addition to other (easier) |
| 48 |
checks) |
| 49 |
|
| 50 |
License |
| 51 |
------- |
| 52 |
|
| 53 |
See [LICENSE](LICENSE). |