mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: Install polkit action file (to execute via pkexec)
This commit is contained in:
parent
8141a1d401
commit
2f8aa96197
2 changed files with 26 additions and 0 deletions
|
|
@ -134,6 +134,8 @@ if [ -z $CK_PORTABLE ]
|
|||
install -m 644 install/linux/doublecmd.desktop $DC_INSTALL_PREFIX/usr/share/applications/doublecmd.desktop
|
||||
ln -sf ../../../../doublecmd/pixmaps/mainicon/alt/dcfinal.svg \
|
||||
$DC_INSTALL_PREFIX/usr/share/icons/hicolor/scalable/apps/doublecmd.svg
|
||||
install -d $DC_INSTALL_PREFIX/usr/share/polkit-1/actions
|
||||
install -m 644 install/linux/org.doublecmd.root.policy $DC_INSTALL_PREFIX/usr/share/polkit-1/actions/
|
||||
else
|
||||
# Copy documentation
|
||||
mkdir -p $DC_INSTALL_DIR/doc
|
||||
|
|
|
|||
24
install/linux/org.doublecmd.root.policy
Normal file
24
install/linux/org.doublecmd.root.policy
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?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>Double Commander</vendor>
|
||||
<vendor_url>https://doublecmd.sourceforge.io</vendor_url>
|
||||
|
||||
<action id="org.doublecmd.root">
|
||||
<description>Run Double Commander with elevated privileges</description>
|
||||
<message>Please enter your password to run Double Commander as root</message>
|
||||
<icon_name>doublecmd</icon_name>
|
||||
<defaults>
|
||||
<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/doublecmd</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
||||
Loading…
Add table
Add a link
Reference in a new issue