popup: use system fonts exclusively
This commit is contained in:
@@ -228,7 +228,6 @@ waitaddress(Daemon *d, int notifyfd)
|
||||
static int
|
||||
startdaemon(Daemon *d, char *program, char *mapdir)
|
||||
{
|
||||
char missing[384];
|
||||
int fd, notifyfd, watch, errpipe[2];
|
||||
long maxfd;
|
||||
pid_t pid;
|
||||
@@ -250,9 +249,7 @@ startdaemon(Daemon *d, char *program, char *mapdir)
|
||||
snprintf(d->home, sizeof d->home, "%s/home", d->root)
|
||||
>= (int)sizeof d->home ||
|
||||
snprintf(d->socket, sizeof d->socket, "%s/strans.sock", d->runtime)
|
||||
>= (int)sizeof d->socket ||
|
||||
snprintf(missing, sizeof missing, "%s/missing-font.ttf", d->root)
|
||||
>= (int)sizeof missing)
|
||||
>= (int)sizeof d->socket)
|
||||
return fail("temporary path is too long");
|
||||
if(!makedir(d->runtime) || !makedir(d->config) || !makedir(d->ibus) ||
|
||||
!makedir(d->bus) || !makedir(d->home))
|
||||
@@ -299,7 +296,7 @@ startdaemon(Daemon *d, char *program, char *mapdir)
|
||||
strerror(errno));
|
||||
_exit(126);
|
||||
}
|
||||
execl(program, program, mapdir, 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