mirror of
https://github.com/GXDE-OS/GXDE.git
synced 2026-06-22 07:16:37 +08:00
14 lines
607 B
Plaintext
14 lines
607 B
Plaintext
// 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 ((action.id == "org.freedesktop.udisks2.filesystem-mount-system") &&
|
|
subject.local &&
|
|
subject.active &&
|
|
subject.isInGroup ("sudo")) {
|
|
return polkit.Result.YES;
|
|
}
|
|
});
|