popup: use system fonts exclusively
This commit is contained in:
@@ -67,7 +67,6 @@ struct Test
|
||||
char bus[448];
|
||||
char home[320];
|
||||
char socket[384];
|
||||
char missing[384];
|
||||
char addrfile[512];
|
||||
char addrbase[256];
|
||||
char firstaddress[512];
|
||||
@@ -221,9 +220,7 @@ setup(Test *t)
|
||||
snprintf(t->home, sizeof t->home, "%s/home", t->root)
|
||||
>= (int)sizeof t->home ||
|
||||
snprintf(t->socket, sizeof t->socket, "%s/strans.sock", t->runtime)
|
||||
>= (int)sizeof t->socket ||
|
||||
snprintf(t->missing, sizeof t->missing, "%s/missing-font.ttf", t->root)
|
||||
>= (int)sizeof t->missing)
|
||||
>= (int)sizeof t->socket)
|
||||
return fail("temporary path is too long");
|
||||
if(!makedir(t->runtime) || !makedir(t->config) || !makedir(t->ibus) ||
|
||||
!makedir(t->bus) || !makedir(t->home))
|
||||
@@ -292,7 +289,7 @@ startchild(Test *t, char *program, char *mapdir, pid_t *child, int *errfd)
|
||||
strerror(errno));
|
||||
_exit(126);
|
||||
}
|
||||
execl(program, program, mapdir, t->missing, (char*)0);
|
||||
execl(program, program, mapdir, (char*)0);
|
||||
dprintf(STDERR_FILENO, "exec %s: %s\n", program, strerror(errno));
|
||||
_exit(127);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user