data: Split user and system data files into respective directories, add user D-Bus unit

This commit is contained in:
Vicki Pfau 2024-05-06 13:26:40 -07:00
parent 752ebfc297
commit 398445296d
5 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,16 @@
<?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>
<!-- Only root can own the service -->
<policy user="root">
<allow own="com.steampowered.SteamOSManager1"/>
</policy>
<!-- Anyone can send messages to the service -->
<policy context="default">
<allow send_destination="com.steampowered.SteamOSManager1"/>
</policy>
</busconfig>

View file

@ -0,0 +1,5 @@
[D-BUS Service]
Name=com.steampowered.SteamOSManager1
Exec=/usr/lib/steamos-manager -r
User=root
SystemdService=steamos-manager.service

View file

@ -0,0 +1,15 @@
[Unit]
Description=SteamOS Manager Daemon
Wants=steamos-log-submitter.service
After=steamos-log-submitter.service
[Service]
Type=dbus
BusName=com.steampowered.SteamOSManager1
Environment=RUST_LOG='INFO'
ExecStart=/usr/lib/steamos-manager -r
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target