Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyd per user #228

Closed
timsofteng opened this issue Jun 4, 2022 · 8 comments
Closed

keyd per user #228

timsofteng opened this issue Jun 4, 2022 · 8 comments

Comments

@timsofteng
Copy link

Hello. I use distro without systemd. How can I enable keyd for specific user only?

@rvaiya
Copy link
Owner

rvaiya commented Jun 6, 2022

It depends on what you mean by 'for a specific user only'. keyd can be run without systemd, but it should still be run as root since it needs access to your input devices and /dev/uinput. The best way to achieve this is to have your init system start and manage it at boot time.

@timsofteng
Copy link
Author

I mean I want to enable keyd for user Foo but don't enable it for root user.

@rvaiya
Copy link
Owner

rvaiya commented Jun 6, 2022

keyd is a system level daemon. per-user configs are unsupported. See #105 for more details.

@timsofteng
Copy link
Author

keyd is a system level daemon. per-user configs are unsupported. See #105 for more details.

Got it.
Thanks for the explanation. My main concern is keyd could down for some reason and user will have no ability to do anything with machine. For me it's like changing default shall for root.

@rvaiya
Copy link
Owner

rvaiya commented Jun 7, 2022

My main concern is keyd could down for some reason and user will have no ability to do anything with machine.

If you start the process properly it shouldn't randomly crash. Even if it did, your keyboard should still work (albeit with default layout). In either case it is unclear what this has to do with which user is running the process.

It would help if you were more clear about what it is you are trying to achieve (and what distro you are running).

@rvaiya
Copy link
Owner

rvaiya commented Jun 18, 2022

Closing due to inactivity.

@rvaiya rvaiya closed this as completed Jun 18, 2022
@timsofteng
Copy link
Author

Closing due to inactivity.

I'm sorry. I was busy and didn't respond.
I mean I want enable keyd for specific user only. That's it.

@rvaiya
Copy link
Owner

rvaiya commented Jun 24, 2022

Depending precisely on what you mean by 'for a specific user', this is probably not possible. As mentioned in my earlier post keyd is a system wide daemon. Please see the linked issue for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants