big rewrite with a dbus service, not finished atm

This commit is contained in:
guinux
2013-01-06 19:10:13 +01:00
parent 9095ef993c
commit 5982973656
25 changed files with 682 additions and 406 deletions

View File

@@ -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;

View File

@@ -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;

View 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>

View File

@@ -0,0 +1,5 @@
[D-BUS Service]
Name=org.manjaro.pamac
Exec=/usr/bin/start-pamac-daemon
User=root

View 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>