paclient icon indicating copy to clipboard operation
paclient copied to clipboard

cookie file is not always hex-encoded

Open manofearth opened this issue 6 years ago • 0 comments

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)
}

manofearth avatar Jan 17 '20 02:01 manofearth