mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
data: make service dbus-activatable
Always install the dbus service file and specify the systemd unit file in it. This makes the service dbus-activatable and thus we don't need to explicitly enable it (also we have one less daemon running, if it is not needed).
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
[D-BUS Service]
|
||||
Name=com.feralinteractive.GameMode
|
||||
Exec=@BINDIR@/gamemoded -d
|
||||
SystemdService=gamemoded.service
|
||||
|
@ -10,16 +10,17 @@ if with_systemd == true
|
||||
configuration: data_conf,
|
||||
install_dir: path_systemd_unit_dir,
|
||||
)
|
||||
else
|
||||
# Install the D-BUS service file
|
||||
configure_file(
|
||||
input: 'com.feralinteractive.GameMode.service.in',
|
||||
output: 'com.feralinteractive.GameMode.service',
|
||||
configuration: data_conf,
|
||||
install_dir: path_dbus_service_dir,
|
||||
)
|
||||
endif
|
||||
|
||||
# Install the D-BUS service file
|
||||
configure_file(
|
||||
input: 'com.feralinteractive.GameMode.service.in',
|
||||
output: 'com.feralinteractive.GameMode.service',
|
||||
configuration: data_conf,
|
||||
install_dir: path_dbus_service_dir,
|
||||
)
|
||||
|
||||
|
||||
# Install the Polkit action file in all cases
|
||||
configure_file(
|
||||
input: 'com.feralinteractive.GameMode.policy.in',
|
||||
|
Reference in New Issue
Block a user