polkit.addRule(function(action, subject) { if ((action.id == "org.gtk.vfs.file-operations-helper") && subject.local && subject.active && subject.isInGroup ("wheel")) { return polkit.Result.YES; } });