mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-28 18:20:09 +00:00
fix(ds-inhibit): autoload hid-playstation to avoid hook conflicts (#991)
This commit is contained in:
parent
62a2cf9917
commit
a771bf7950
2
spec_files/ds-inhibit/10-modprobe-ds.conf
Normal file
2
spec_files/ds-inhibit/10-modprobe-ds.conf
Normal file
@ -0,0 +1,2 @@
|
||||
# autoload hid-playstation so ds-inhibit works correctly
|
||||
hid-playstation
|
@ -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 }}}
|
||||
|
Loading…
Reference in New Issue
Block a user