-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Unable to start pkexec swhkd
#282
Comments
just a wild guess but can you check weather /dev/rfkill exists on your system? |
Thank you for getting back to me. |
Looks like it's trying to raise privileges: Line 16 in 75bcd8d
Not sure why it's trying to do that, and if I should it run as root, although in the readme, it doesn't talk about sudo. |
But if I run it with sudo, it's trying to read config for the root user:
|
Looks like it might be related to #156 |
Hey @manthanabc, I'm curious why you asked about I think I was able to successfully run swhkd, not sure if I can reproduce it, as I had to use pkexec when running manually from command line. Here is the log:
But also, for some reason, it killed my wifi, and i see |
And this is what I see when I try to run it as part of systemd
This is my service file:
And this is the script:
|
swhkd momentarily disables rfkill to create a new virtual switch device, to do so it opens /dev/rfkill if that device is not found it results in same error that encountered earlier, thats why i asked
Yeah thats a known issue #174 and #267
ig you would have to run swhkd/scripts/bulid-polkit-policy.sh to have polkit not ask for authentication |
Thanks @manthanabc for detailed answer. I'll check out those issues. As for polkit, I see that it was removed, and said that it's no longer necessary – #270 That part is a little bit confusing, curious if you have more context there. |
Did not know this, will look into it thanks! |
also @manthanabc this is what made it work for me: #285 |
Version Information:
uname -a
)swhkd -V
)Describe the bug:
I was able to install it finally (#281). And following next steps in the readme, trying to start it manually:
Running
swhks &
works fine, or at least no errors,but running
swhkd
, I get:Expected behavior:
Not to error and run.
Actual behavior:
Errors out.
To Reproduce:
Install from AUR, and then run
swhkd
.Additional information:
If I try to run via systemd service with
pexec swhkd
I get sudo request, and then bunch of errors as well:The text was updated successfully, but these errors were encountered: