Don't install files using absolute paths

Also, move gsr-nvidia.conf to /lib/modprobe.d, which is the intended
location for installed packages.
This commit is contained in:
Tim Schumacher
2024-08-18 10:42:19 +02:00
committed by dec05eba
parent fa4317a9ea
commit 6b8e547737

View File

@@ -72,7 +72,7 @@ executable('gsr-kms-server', 'kms/server/kms_server.c', dependencies : dependenc
executable('gpu-screen-recorder', src, dependencies : dep, install : true)
if get_option('systemd') == true
install_data(files('extra/gpu-screen-recorder.service'), install_dir : '/usr/lib/systemd/user')
install_data(files('extra/gpu-screen-recorder.service'), install_dir : 'lib/systemd/user')
endif
if get_option('capabilities') == true
@@ -80,5 +80,5 @@ if get_option('capabilities') == true
endif
if get_option('nvidia_suspend_fix') == true
install_data(files('extra/gsr-nvidia.conf'), install_dir : '/etc/modprobe.d')
install_data(files('extra/gsr-nvidia.conf'), install_dir : 'lib/modprobe.d')
endif