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
+2
View File
@@ -8,7 +8,9 @@ install:
mkdir -pv $(DESTDIR)/etc/xdg/autostart
mkdir -pv $(DESTDIR)/usr/bin
mkdir -pv $(DESTDIR)/usr/lib/systemd/system/
mkdir -pv $(DESTDIR)/usr/share/polkit-1/rules.d/
cp -rv deepin-file-manager-mount.rules $(DESTDIR)/usr/share/polkit-1/rules.d/deepin-file-manager-mount.rules
cp -rv dde.sh $(DESTDIR)/etc/profile.d/dde.sh
#cp -rv debian-dde.list $(DESTDIR)/etc/apt/sources.list.d/debian-dde.list
cp -rv debiandde-first-config.service $(DESTDIR)/usr/lib/systemd/system/debiandde-first-config.service
+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;
}
});