xdg icon indicating copy to clipboard operation
xdg copied to clipboard

Go implementation of the XDG Base Directory Specification and XDG user directories

Results 13 xdg issues
Sort by recently updated
recently updated
newest added

This allows to not only use the machine FS but any other supported by afero.Fs in this case. This is a PoC PR as I want to be sure this...

Hello @adrg! Would you be interested in a pull request that enabled custom file system support? (e.g. `afero`)

I am testing this library using fedora and arch Linux and it seems like none of the distributions are setting the env vars for XDG User Directories. ``` [a@localhost-live test]$...

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html > There is a single base directory relative to which user-specific > executable files may be written. > User-specific executable files may be stored in $HOME/.local/bin.

Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.15.0 to 0.17.0. Commits 914b96c windows: support ill-formed UTF-16 in UTF16PtrToString 511ec84 Revert "windows: support nil done parameter in ReadFile and WriteFile" 628365d windows: support nil done...

dependencies
go

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4. Release notes Sourced from codecov/codecov-action's releases. v4.0.0 v4 of the Codecov Action uses the CLI as the underlying upload. The CLI has helped to...

dependencies
github_actions

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3. Release notes Sourced from github/codeql-action's releases. CodeQL Bundle v2.15.4 Bundles CodeQL CLI v2.15.4 (changelog, release) Includes the following CodeQL language packs from github/codeql@codeql-cli/v2.15.4: codeql/cpp-queries...

dependencies
github_actions

Read `~/.config/user-dirs.dirs` if exist, inject in env var if not already present Test `TestDefaultUserDirs` will fail if localized file found. Workaround without this merge: ``` func LoadlinuxXDG() { var (...

Hi, I have noticed that it might not be correct to create all directories with `0o700` permissions: https://github.com/adrg/xdg/blob/d31002f2051c47288d751fd5e17e19675f628fa7/internal/pathutil/pathutil.go#L52-L54 To be specific, the permission of `XDG_RUNTIME_DIR` is supposed to be `700`...

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 5.0.0 to 5.1.0. Release notes Sourced from golangci/golangci-lint-action's releases. v5.1.0 What's Changed Changes feat: support for pull and merge_group events with the option only-new-issues by @​ldez in...

dependencies
github_actions