Session management improvements; set freetype interpreter

This commit is contained in:
K. Lange 2018-09-22 22:37:47 +09:00
parent aa7aa06958
commit 91125fc6f2
3 changed files with 17 additions and 1 deletions

View File

@ -679,7 +679,7 @@ static void handle_key_event(struct yutani_msg_key_event * ke) {
(ke->event.keycode == 't') &&
(ke->event.action == KEY_ACTION_DOWN)) {
launch_application("terminal");
launch_application("exec terminal");
return;
}

View File

@ -16,6 +16,17 @@
#include <sys/wait.h>
int main(int argc, char * argv[]) {
char path[1024];
char * home = getenv("HOME");
if (home) {
sprintf(path, "%s/.yutanirc", home);
char * args[] = {path, NULL};
execvp(args[0], args);
}
/* Fallback */
int _background_pid = fork();
if (!_background_pid) {
char * args[] = {"/bin/background", "--really", NULL};

5
base/home/local/.yutanirc Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
if stat -Lq /usr/share/fonts/DejaVuSansMono.ttf then export FREETYPE_PROPERTIES="truetype:interpreter-version=35"
background --really &
exec panel --really