mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 21:30:36 +01:00
tools: quirks: if we're executing from the builddir, use the git datadir
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
7e7d657dab
commit
25a6535570
1 changed files with 10 additions and 2 deletions
|
|
@ -162,8 +162,16 @@ main(int argc, char **argv)
|
|||
|
||||
/* Overriding the data dir means no custom override file */
|
||||
if (!data_path) {
|
||||
data_path = LIBINPUT_DATA_DIR;
|
||||
override_file = LIBINPUT_DATA_OVERRIDE_FILE;
|
||||
char *builddir;
|
||||
|
||||
builddir = tools_execdir_is_builddir();
|
||||
if (builddir) {
|
||||
data_path = LIBINPUT_DATA_SRCDIR;
|
||||
free(builddir);
|
||||
} else {
|
||||
data_path = LIBINPUT_DATA_DIR;
|
||||
override_file = LIBINPUT_DATA_OVERRIDE_FILE;
|
||||
}
|
||||
}
|
||||
|
||||
quirks = quirks_init_subsystem(data_path,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue