Kaynağa Gözat

polkit bugfix

master
işleme
f22a36b762
2 değiştirilmiş dosya ile 25 ekleme ve 0 silme
  1. +17
    -0
      blueman-polkit-bug.yaml
  2. +8
    -0
      files/polkit-blueman.rules

+ 17
- 0
blueman-polkit-bug.yaml Dosyayı Görüntüle

@@ -0,0 +1,17 @@

- hosts:
- desktops
- laptops
remote_user: root
handlers:
- reboot:
tasks:
- name: polkit rules directory
file:
path: /etc/polkit-1/rules.d
state: directory
- name: polkit blueman rules fix
copy:
src: polkit-blueman.rules
dest: /etc/polkit-1/rules.d/81-blueman.rules
notify: reboot

+ 8
- 0
files/polkit-blueman.rules Dosyayı Görüntüle

@@ -0,0 +1,8 @@
polkit.addRule(function(action, subject) {
if ((action.id == "org.blueman.rfkill.setstate" ||
action.id == "org.blueman.network.setup") &&
subject.local && subject.active && subject.isInGroup("netdev")) {

return polkit.Result.YES;
}
});

Yükleniyor…
İptal
Kaydet