paclient
paclient copied to clipboard
cookie file is not always hex-encoded
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)
}