fix(ds-inhibit): autoload hid-playstation to avoid hook conflicts (#991)

This commit is contained in:
Atapi 2024-04-18 00:55:54 -06:00 committed by GitHub
parent 62a2cf9917
commit a771bf7950
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,2 @@
# autoload hid-playstation so ds-inhibit works correctly
hid-playstation

View File

@ -5,7 +5,8 @@ Summary: DualShock 4/DualSense mouse inhibitor
License: BSD-2-Clause
URL: https://github.com/ublue-os/bazzite
Source: https://gitlab.com/evlaV/%{name}/-/archive/main/%{name}-main.tar.gz
Source0: https://gitlab.com/evlaV/%{name}/-/archive/main/%{name}-main.tar.gz
Source1: 10-modprobe-ds.conf
BuildArch: noarch
Patch0: fedora.patch
@ -31,8 +32,10 @@ chmod +x ds_inhibit.py
%install
mkdir -p %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_unitdir}/
mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d
cp -v ds_inhibit.py %{buildroot}%{_bindir}/ds-inhibit
cp -v systemd.service %{buildroot}%{_unitdir}/ds-inhibit.service
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/modules-load.d
# Do post-installation
%post
@ -52,8 +55,9 @@ cp -v systemd.service %{buildroot}%{_unitdir}/ds-inhibit.service
%license LICENSE
%{_bindir}/ds-inhibit
%{_unitdir}/ds-inhibit.service
%{_sysconfdir}/modules-load.d/10-modprobe-ds.conf
# Finally, changes from the latest release of your application are generated from
# your project's Git history. It will be empty until you make first annotated Git tag.
%changelog
{{{ git_dir_changelog }}}
{{{ git_dir_changelog }}}