Skip to content
Snippets Groups Projects
Commit 44988f41 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

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: default avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 29429888
No related branches found
No related tags found
Loading
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment