[Gentoo] KDE Plasma/DeviceNotifier - udisk2 permissions solution

Juan Garcia

New Member
Joined
Sep 5, 2017
Messages
1
Reaction score
0
Credits
0
First, edit your "make.conf" and add next USE entries
Code:
USE="policykit udisks udev"


Second, update with the new USE changes!
Code:
emerge --ask --update --newuse --deep @world


And finally, edit "/etc/polkit-1/rules.d/##-polkit-pkla-compat.rules", change ## with exist correct file suffix and add next code:
Code:
polkit.addRule(function(action, subject) {
  if (action.id == "org.freedesktop.udisks2.filesystem-mount" && subject.user == "your_username") {
    return "yes";
  }
});
 

Members online


Top