OpenMandrivaAssociation / distribution

OpenMandriva Lx is an exciting free Desktop Operating System that aims to cater to and interest first time and advanced users alike. It has the breadth and depth of an advanced system but is designed to be simple and straightforward in use.
https://openmandriva.org
7 stars 2 forks source link

Addition of 81-blueman-rules file to /etc/polkit-1/rules.d for users in the wheel group #2911

Closed edwardp3 closed 1 year ago

edwardp3 commented 1 year ago

In Rolling, I installed Blueman. Subsequent to this, after logging in with LXQt, I was prompted for my password again, with a dialog box containing the Bluetooth logo and Setting Rfkill State requires privileges.

As my account is already in the wheel group, it sounds like such a prompt shouldn't be seen.

This required the placement of a file named 81-blueman-rules in /etc/polkit-1/rules.d containing the following:

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;
  }
});

Once this file was placed in this directory, after the next and subsequent LXQt logins, this prompt is no longer displayed. This apparently only affects LXQt logins. The prompt did not appear after Plasma and Xfce logins.

Info taken from: https://www.linuxquestions.org/questions/fedora-35/blueman-requires-authentication-twice-when-logging-into-account-4175626708/

tpgxyz commented 1 year ago

Will workaround it. https://github.com/blueman-project/blueman/issues/2073

tpgxyz commented 1 year ago

please try with blueman-2.3.5-2

edwardp3 commented 1 year ago

I've given up on using the smaller desktops, due to numerous issues with them. Presently unable to try with new blueman on LXQt. Using Plasma currently.