Can't create unix socket without 777 permission
scaledteam opened this issue · 5 comments
Can't create unix socket without 777 permission in /usr/local/share/obs/obs-plugins/linux-kmsgrab/
folder.
Ah yes, we need to figure out a better path for socket.
obs-vkcapture uses this path "/tmp/obs-vkcapture.sock", and author also mentioned "$XDG_RUNTIME_DIR/obs-vkcapture.socket". But i don't sure about better socket location too, i'm new in unix sockets.
https://github.com/nowrep/obs-vkcapture/blob/3806d838a629884203c871602a817b2d9b8699ab/src/vkcapture.c#L76
nowrep/obs-vkcapture#13 (comment)
But i don't sure about better socket location too, i'm new in unix sockets.
Me too :D
Something something XDG, freedesktop docs, etc.
It should be a secure location only visible to current user, as this is a fairly security sensitive thing.
seems like most other user specific sockets are in /run/user/1000 which is $XDG_RUNTIME_DIR
Yeah, my fork actually does that and it works really well. Do note, though, that it uses an older, working version of the plugin that has implicit EGL dependency, and doesn't use the built-in OBS implementation.