Skip to content

cookie file is not always hex-encoded #8

@manofearth

Description

@manofearth

At my system (5.2.3-arch1-1-ARCH, libpulse 12.2.0) ~/.config/pulse/cookie contains binary data. So here we can get buffer directly:

if (hexStr.length === 256) {
  return Buffer.from(hexStr)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions