gray-armor / z11

Window System for XR
Apache License 2.0
8 stars 3 forks source link

Find a way to read /dev/input and execute steamvr at the same time #61

Open Aki-7 opened 2 years ago

Aki-7 commented 2 years ago

↓ privileges 関連でこの辺が参考になりそう。

https://unix.stackexchange.com/questions/242222/read-from-dev-input-devices-without-root-privileges

shierote commented 2 years ago

これの回答にもあるように、linuxのfile systemの権限を逸脱できない(し、しないほうが良い)から、現在実行中のユーザーをinput groupに入れるのがストレートなやり方っぽい。

Aki-7 commented 2 years ago

その方法は簡単で、開発環境としてはいいと思うけど、 ユーザの普段使うlinux userをinputグループに入れろというのは乱暴だから、実際にリリースときには何かしらuserを作成してあげて、そのuserで実行するような感じにする必要がありそうね。service とかにしちゃうのが簡単かもね。