Bug 1806322

Summary: libinput-utils's replay command gives error: "No such file or directory: /etc/libinput/local-overrides.quirks"
Product: [Fedora] Fedora Reporter: Didik Supriadi <didiksupriadi41>
Component: libinputAssignee: Peter Hutterer <peter.hutterer>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 31CC: btissoir, didiksupriadi41, peter.hutterer
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-24 00:01:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Didik Supriadi 2020-02-23 19:42:03 UTC
Description of problem:
`libinput replay` tried to find '/etc/libinput/local-overrides.quirks' when I tried to replay a touchpad event record.

Version-Release number of selected component (if applicable):
libinput-1.15.2-1.x86_64
libinput-utils-1.15.2-1.x86_64

How reproducible:
always

Steps to Reproduce:
1. create an event record:

`sudo libinput recored > touchpad.yml`
`# then choose touchpad device`

2. trigger touchpad events
3. Ctrl-C (to finish recording)

Actual results:
Error: failed to open device: [Errno 2] No such file or directory: '/etc/libinput/local-overrides.quirks'

Expected results:
Replay a previously recorded event stream.

Additional info:

Comment 1 Didik Supriadi 2020-02-23 19:51:02 UTC
(In reply to Didik Supriadi from comment #0)
> Steps to Reproduce:
> 1. create an event record:
> 
> `sudo libinput recored > touchpad.yml`
> `# then choose touchpad device`

*record (instead of recored)

> 
> 2. trigger touchpad events
> 3. Ctrl-C (to finish recording)

4. replay touchpad record:

`sudo libinput replay touchpad.yml`

Comment 2 Peter Hutterer 2020-02-24 00:01:46 UTC
Thanks, filed a merge request upstream, see https://gitlab.freedesktop.org/libinput/libinput/merge_requests/396

This will be fixed whenever the next libinput version comes out but since replay is a bit of a niche case anyway, I won't push out a separate fedora fix for that.
As a workaround for the issue, just sudo mkdir /etc/libinput and the error will be gone.