Repair mounting problem with deepin file manager

This commit is contained in:
2024-02-24 14:51:46 +08:00
parent bb9c79e68d
commit a28cd376f8
2 changed files with 14 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
// Allows users belonging to privileged group to start gvfsd-admin without
// authorization. This prevents redundant password prompt when starting
// gvfsd-admin. The gvfsd-admin causes another password prompt to be shown
// for each client process using the different action id and for the subject
// based on the client process.
polkit.addRule(function(action, subject) {
if ((subject.local &&
subject.active &&
subject.isInGroup ("sudo")) {
return polkit.Result.YES;
}
});