mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 20:30:27 +01:00
tools: replay: mkdir /etc/libinput if it doesn't exist yet
Where we're replaying a device with quirks, those quirks will be placed into /etc/libinput/local-overrides.quirks. For that to work, /etc/libinput needs to exist so let's make it where required. https://bugzilla.redhat.com/show_bug.cgi?id=1806322 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
294298880d
commit
44988f411b
1 changed files with 1 additions and 0 deletions
|
|
@ -224,6 +224,7 @@ def setup_quirks(recording):
|
|||
print('{} exists, please move it out of the way first'.format(overrides), file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
overrides.parent.mkdir(exist_ok=True)
|
||||
with overrides.open('w+') as fd:
|
||||
fd.write('# This file was generated by libinput replay\n')
|
||||
fd.write('# Unless libinput replay is running right now, remove this file.\n')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue