obs-kmsgrab icon indicating copy to clipboard operation
obs-kmsgrab copied to clipboard

Can't create unix socket without 777 permission

Open scaledteam opened this issue 3 years ago • 5 comments

Can't create unix socket without 777 permission in /usr/local/share/obs/obs-plugins/linux-kmsgrab/ folder.

scaledteam avatar Aug 08 '21 10:08 scaledteam

Ah yes, we need to figure out a better path for socket.

w23 avatar Aug 10 '21 06:08 w23

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 https://github.com/nowrep/obs-vkcapture/issues/13#issuecomment-860911846

scaledteam avatar Aug 10 '21 06:08 scaledteam

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.

w23 avatar Aug 10 '21 06:08 w23

seems like most other user specific sockets are in /run/user/1000 which is $XDG_RUNTIME_DIR

adryd325 avatar Feb 28 '22 08:02 adryd325

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.

xnqs avatar Feb 28 '22 10:02 xnqs