pulseaudio icon indicating copy to clipboard operation
pulseaudio copied to clipboard

ModuleIsLoaded() Errors if Golang is from snap

Open lornajane opened this issue 4 years ago • 1 comments

With golang installed from a snap, ModuleIsLoaded() always exited with status 1 - I think because it doesn't have permission to run the pacmd command. Using "normal" golang (downloaded from the go website) does not have the same problem.

I'm not sure what the answer is, a line in the README to warn users maybe? But I wanted to mention it in case anyone else hit the same thing.

lornajane avatar May 17 '20 20:05 lornajane

This doesn't make sense. Go is a compiler, and as such it is only concerned about build-time stuff, not runtime stuff.

Were you running your compiled binary inside a sandbox as well? That could explain it, but it has nothing to do with the programming language or the compiler.

joonas-fi avatar Dec 09 '22 23:12 joonas-fi