Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for datadirs to be colon-separated #803

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

whot
Copy link
Member

@whot whot commented Oct 23, 2024

Useful for testing e.g. #788 with built-in tools like debug-device. The new file is in /etc/libwacom to make it system-wide accessible but debug-device only uses the git datadir by default.

This MR allows for:

./build/debug-device --database /etc/libwacom:$PWD/data /dev/input/event19

and other testing of databases distributed across multiple data dirs.

@whot whot force-pushed the wip/multiple-datadirs branch from 8250e82 to b29d0e6 Compare October 23, 2024 22:52
whot added 3 commits October 24, 2024 08:55
Since we're only running through it anyway there's no need to have a
size argument.
Split the given database path by colon, same as PATH behavior, to allow
callers to pass multiple database paths.
@whot whot force-pushed the wip/multiple-datadirs branch 2 times, most recently from 37b07b8 to bc95f8d Compare October 23, 2024 22:57
@whot whot merged commit 78f2b9e into linuxwacom:master Oct 23, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant