diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2023-04-04 13:43:15 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2023-04-04 16:02:09 +1000 |
commit | 72b86caffcb05ed03e6467801fc19d8af81e6f4f (patch) | |
tree | 4a6cf9616ac28f2f34381eddf961f433e9746eb7 /tools/list-local-devices.c | |
parent | 05eaa8c81352dffd7b7dba7d73cad23a72db03ee (diff) | |
download | libwacom-72b86caffcb05ed03e6467801fc19d8af81e6f4f.tar.gz |
tools: add list-local-devices as builddir tool
An uninstalled version of libwacom-list-local-devices that does not
require the database path to be given on the commandline.
Makes things a bit more convenient for debugging, same as the existing
builddir/list-devices.
Diffstat (limited to 'tools/list-local-devices.c')
-rw-r--r-- | tools/list-local-devices.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/list-local-devices.c b/tools/list-local-devices.c index 0ba6cce..2f2c043 100644 --- a/tools/list-local-devices.c +++ b/tools/list-local-devices.c @@ -187,7 +187,11 @@ int main(int argc, char **argv) db = libwacom_database_new_for_path(database_path); g_free (database_path); } else { +#ifdef DATABASEPATH + db = libwacom_database_new_for_path(DATABASEPATH); +#else db = libwacom_database_new(); +#endif } if (!db) { |