Skip to content

Commit

Permalink
Updated pkexec support
Browse files Browse the repository at this point in the history
  • Loading branch information
dg1727 committed Feb 20, 2017
1 parent 74a8768 commit f9b22af
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions makepot
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
data/extract_action_strings data
xgettext --from-code=UTF-8 --keyword=_ --keyword=N_ --output=nemo.pot src/*.c libnemo-extension/*.c libnemo-private/*.c eel/*.c data/action_i18n_strings.py
xgettext --join-existing -L Glade src/*.glade --output=nemo.pot
xgettext --join-existing --its=polkit.its -L PolkitPolicy share/polkit/*.policy.in --output=nemo.pot
7 changes: 7 additions & 0 deletions polkit.its
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<its:rules xmlns:its="http://www.w3.org/2005/11/its"
version="2.0">
<its:translateRule selector="/action/description |
/action/message"
translate="yes"/>
</its:rules>
6 changes: 6 additions & 0 deletions polkit.loc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<locatingRules>
<locatingRule name="PolkitPolicy" pattern="*.policy">
<documentRule localName="policyconfig" target="polkit.its"/>
</locatingRule>
</locatingRules>
10 changes: 5 additions & 5 deletions src/org.nemo.root.policy.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@

<policyconfig>

<vendor>Linux Mint</vendor>
<vendor_url>http://linuxmint.com/</vendor_url>
<vendor>Nemo Project</vendor>
<vendor_url>https://github.com/linuxmint/nemo</vendor_url>

<action id="org.nemo.root">
<description>Run Nemo with elevated privileges</description>
<message>Authentication is required to run Nemo as root</message>
<message>Please enter your password to run Nemo as root</message>
<icon_name>gksu-root-terminal</icon_name>
<defaults>
<allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/nemo</annotate>
Expand Down

0 comments on commit f9b22af

Please sign in to comment.