This commit is contained in:
guinux
2017-07-29 16:35:04 +02:00
parent b64b603e82
commit d661c573f9
36 changed files with 1979 additions and 2527 deletions

View File

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

View File

@@ -4,19 +4,19 @@
<busconfig>
<!-- Only root can own the service -->
<policy user="root">
<allow own="org.manjaro.pamac"/>
<allow own="org.manjaro.pamac.system"/>
</policy>
<!-- Allow anyone to invoke methods on the interfaces -->
<policy context="default">
<allow send_destination="org.manjaro.pamac"
send_interface="org.manjaro.pamac"/>
<allow send_destination="org.manjaro.pamac.system"
send_interface="org.manjaro.pamac.system"/>
<allow send_destination="org.manjaro.pamac"
send_interface="org.freedesktop.DBus.Introspectable"/>
<allow send_destination="org.manjaro.pamac"
<allow send_destination="org.manjaro.pamac.system"
send_interface="org.freedesktop.DBus_Introspectable"/>
<allow send_destination="org.manjaro.pamac.system"
send_interface="org.freedesktop.DBus.Peer"/>
<allow send_destination="org.manjaro.pamac"
<allow send_destination="org.manjaro.pamac.system"
send_interface="org.freedesktop.DBus.Properties"/>
</policy>
</busconfig>

View File

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

View File

@@ -0,0 +1,3 @@
[D-BUS Service]
Name=org.manjaro.pamac.user
Exec=/usr/bin/pamac-user-daemon

View File

@@ -1,12 +0,0 @@
#!/bin/sh
INTERFACE=$1 # The interface which is brought up or down
STATUS=$2 # The new state of the interface
case "$STATUS" in
'up') # $INTERFACE is up
[[ -e /usr/bin/mhwd-live ]] && sleep 30
/usr/bin/pamac-refresh
;;
esac

View File

@@ -0,0 +1,7 @@
[Unit]
Description=Pamac System Session
[Service]
Type=dbus
BusName=org.manjaro.pamac.system
ExecStart=/usr/bin/pamac-system-daemon

View File

@@ -1,7 +0,0 @@
[Unit]
Description=Pamac
[Service]
Type=dbus
BusName=org.manjaro.pamac
ExecStart=/usr/bin/pamac-daemon