forked from elementary/code
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow launching with pkexec (elementary#951)
* Allow launching with pkexec * Update Application.vala Co-authored-by: Jeremy Wootten <[email protected]>
- Loading branch information
1 parent
881266f
commit 4bb9ec5
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?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.0/policyconfig.dtd"> | ||
<policyconfig> | ||
<vendor>elementary</vendor> | ||
<vendor_url>https://github.com/elementary/code</vendor_url> | ||
<icon_name>io.elementary.code</icon_name> | ||
<action id="org.freedesktop.policykit.pkexec.io.elementary.code"> | ||
<description>Run Code as Administrator</description> | ||
<message>Authentication is required to run Code as Administrator</message> | ||
<defaults> | ||
<allow_any>auth_admin</allow_any> | ||
<allow_inactive>auth_admin</allow_inactive> | ||
<allow_active>auth_admin</allow_active> | ||
</defaults> | ||
<annotate key="org.freedesktop.policykit.exec.path">@install_prefix@/@bin_dir@/@exec_name@</annotate> | ||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> | ||
</action> | ||
</policyconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
data/io.elementary.code.appdata.xml.in | ||
data/io.elementary.code.desktop.in.in | ||
data/code.policy.in.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters