修复文件管理器无法自动挂载的问题

This commit is contained in:
2024-02-25 13:57:50 +08:00
parent a28cd376f8
commit 15294f9687
3 changed files with 3 additions and 4 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;
}
});