mirror of
https://github.com/GXDE-OS/GXDE.git
synced 2026-06-22 05:16:36 +08:00
Repair mounting problem with deepin file manager
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user