Skip to content

Commit 3bb8973

Browse files
committed
fix: Modify can't connect to new WiFi issues
pkla has been abandoned, use rules to control permissions pms: BUG-312889 Issues: linuxdeepin/developer-center#9630
1 parent 3aa873c commit 3bb8973

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

debian/dss-network-plugin.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
usr/lib/dde-session-shell/modules/libdss-network-plugin.so
22
usr/share/dss-network-plugin/translations
3-
var/lib/polkit-1/localauthority/10-vendor.d/10-network-manager.pkla
3+
usr/share/polkit-1/rules.d/50-dss-network-plugin.rules

dss-network-plugin/10-network-manager.pkla

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */
2+
3+
polkit.addRule(function(action, subject) {
4+
if ((action.id.indexOf("org.freedesktop.NetworkManager.") == 0) &&
5+
subject.user == "lightdm") {
6+
return polkit.Result.YES;
7+
}
8+
});

dss-network-plugin/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ install(TARGETS ${PLUGIN_NAME} LIBRARY DESTINATION lib/dde-session-shell/modules
6969
# 安装 .qm 文件
7070
install(FILES ${QM_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/${PLUGIN_NAME}/translations)
7171

72-
install(FILES 10-network-manager.pkla DESTINATION ${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/polkit-1/localauthority/10-vendor.d)
72+
install(FILES 50-dss-network-plugin.rules DESTINATION ${CMAKE_INSTALL_DATADIR}/polkit-1/rules.d)

0 commit comments

Comments
 (0)