Browse Source

Session management improvements; set freetype interpreter

K. Lange 4 years ago
parent
commit
91125fc6f2
3 changed files with 17 additions and 1 deletions
  1. 1 1
      apps/panel.c
  2. 11 0
      apps/session.c
  3. 5 0
      base/home/local/.yutanirc

+ 1 - 1
apps/panel.c

@@ -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;
 	}
 

+ 11 - 0
apps/session.c

@@ -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 - 0
base/home/local/.yutanirc

@@ -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