Skip to content

Commit

Permalink
fix: airplane policy file missing
Browse files Browse the repository at this point in the history
airplane policy file missing

Log:
  • Loading branch information
dengbo11 committed Nov 21, 2023
1 parent f08f966 commit ab7bf07
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ gopath/
.idea/

a.out
misc/polkit-action/*.policy
misc/polkit-action/org.deepin.dde.accounts.policy
misc/polkit-action/org.deepin.dde.fprintd.policy
misc/polkit-action/org.deepin.dde.grub2.policy
coverage.csv
ConfigKeeperMute_Save
system/uadp1/testdata
Expand Down
19 changes: 19 additions & 0 deletions misc/polkit-action/org.deepin.dde.airplane.policy
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<vendor>LinuxDeepin</vendor>
<vendor_url>https://www.deepin.com/</vendor_url>

<action id="org.deepin.dde.airplane-mode.enable-disable-any">
<description>Enable or disable any switch in airplane mode</description>
<message>Authentication is required to enable or disable any switch in airplane mode</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>

</policyconfig>

0 comments on commit ab7bf07

Please sign in to comment.