[Unit]
Description=Switcheroo Control Proxy service
Before=multi-user.target display-manager.target alsa-restore.service alsa-state.service

[Service]
Type=dbus
BusName=net.hadess.SwitcherooControl
ExecStart=@libexecdir@/switcheroo-control

# Lockdown
ProtectSystem=strict
ProtectControlGroups=true
ProtectHome=true
ProtectKernelModules=true
PrivateTmp=true
RestrictAddressFamilies=AF_UNIX AF_LOCAL AF_NETLINK
MemoryDenyWriteExecute=true
RestrictRealtime=true

[Install]
WantedBy=graphical.target
