I installed Blueman to setup my Bluetooth mouse, and it seems to work all fine, though, when I start Fedora, it asks me to enter my password twice, once to authenticate to network or something and the other time for changing the Rfkill state. This can be a bit annoying, and I want to make sure that the authentications on startup do not appear.
I made the following edits, but it still appears:
/lib/udev/rules.d/50-bluetooth-hci-auto-poweron.rules:
# /lib/udev/rules.d/50-bluetooth-hci-auto-poweron.rules
# Set bluetooth power up
ACTION=="add", SUBSYSTEM=="bluetooth", KERNEL=="hci[0-9]*", RUN+="/bin/hciconfig %k up"
/etc/polkit-1/rules.d/81-blueman.rules:
# /etc/polkit-1/rules.d/81-blueman.rules
# Rule to relax polkit and remove the two auth steps on startup
polkit.addRule(function(action, subject) {
if (action.id == "org.blueman.rfkill.setstate" && subject.local && subject.active && subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
if (action.id == "org.blueman.network.setup" && subject.local && subject.active && subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
Any ideas how can I overcome the authentication checks at startup?