big rewrite with a dbus service, not finished atm
This commit is contained in:
@@ -131,7 +131,7 @@ Comment[zh_CN]=添加或删除系统中安装的软件
|
||||
Comment[zh_HK]=加入或移除系統上安裝的軟件
|
||||
Comment[zh_TW]=加入或移除系統上安裝的軟體
|
||||
Icon=system-software-install
|
||||
Exec=gksu pamac
|
||||
Exec=gksu pamac-manager
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=GNOME;GTK;System;
|
@@ -127,7 +127,7 @@ Comment[zh_CN]=更新本系统中安装的软件
|
||||
Comment[zh_HK]=更新系統中已安裝的軟件
|
||||
Comment[zh_TW]=更新系統中已安裝的軟體
|
||||
Icon=system-software-update
|
||||
Exec=gksu pamac-update
|
||||
Exec=gksu pamac-updater
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=GNOME;GTK;System;
|
19
data/dbus/org.manjaro.pamac.conf
Normal file
19
data/dbus/org.manjaro.pamac.conf
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||
<busconfig>
|
||||
<type>system</type>
|
||||
<!-- Only root can own the service -->
|
||||
<policy user="root">
|
||||
<allow own="org.manjaro.pamac"/>
|
||||
</policy>
|
||||
|
||||
<!-- Allow anyone to invoke methods on the interfaces -->
|
||||
<policy context="default">
|
||||
<allow send_destination="org.manjaro.pamac"/>
|
||||
<allow send_interface="org.manjaro.pamac"/>
|
||||
<allow receive_interface="org.manjaro.pamac"/>
|
||||
<allow receive_sender="org.manjaro.pamac"/>
|
||||
</policy>
|
||||
</busconfig>
|
||||
|
5
data/dbus/org.manjaro.pamac.service
Normal file
5
data/dbus/org.manjaro.pamac.service
Normal file
@@ -0,0 +1,5 @@
|
||||
[D-BUS Service]
|
||||
Name=org.manjaro.pamac
|
||||
Exec=/usr/bin/start-pamac-daemon
|
||||
User=root
|
||||
|
26
data/polkit/org.manjaro.pamac.policy
Normal file
26
data/polkit/org.manjaro.pamac.policy
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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>Manjaro</vendor>
|
||||
<icon_name>pamac</icon_name>
|
||||
<action id="org.manjaro.pamac.commit">
|
||||
<message>Authentication is required to change alpm database</message>
|
||||
<message xml:lang="fr">L'authentification est nécessaire pour changer la base de données alpm</message>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>auth_admin_keep</allow_active>
|
||||
</defaults>
|
||||
</action>
|
||||
|
||||
<action id="org.manjaro.pamac.init_release">
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
</defaults>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
Reference in New Issue
Block a user