mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
D-Bus activation
Provide .conf and .service files for D-Bus to use, allowing fprintd to be autostarted
This commit is contained in:
committed by
Daniel Drake
parent
1f54a0c363
commit
aff2f2aacc
15
data/Makefile.am
Normal file
15
data/Makefile.am
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
dbus_servicesdir = $(datadir)/dbus-1/system-services
|
||||
dbus_confdir = $(sysconfdir)/dbus-1/system.d
|
||||
|
||||
dbus_services_in_files = net.reactivated.Fprint.service.in
|
||||
|
||||
dbus_services_DATA = $(dbus_services_in_files:.service.in=.service)
|
||||
|
||||
$(dbus_services_DATA): $(dbus_services_in_files)
|
||||
sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" $< > $@
|
||||
|
||||
dbus_conf_DATA = net.reactivated.Fprint.conf
|
||||
|
||||
|
||||
|
||||
13
data/net.reactivated.Fprint.conf
Normal file
13
data/net.reactivated.Fprint.conf
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
|
||||
|
||||
<!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="net.reactivated.Fprint"/>
|
||||
</policy>
|
||||
|
||||
</busconfig>
|
||||
4
data/net.reactivated.Fprint.service.in
Normal file
4
data/net.reactivated.Fprint.service.in
Normal file
@ -0,0 +1,4 @@
|
||||
[D-BUS Service]
|
||||
Name=net.reactivated.Fprint
|
||||
Exec=@LIBEXECDIR@/fprintd
|
||||
User=root
|
||||
Reference in New Issue
Block a user