Browse Source

terminal: use full arguments when launching an application

K. Lange 2 years ago
parent
commit
9514c017ee
1 changed files with 1 additions and 2 deletions
  1. 1 2
      apps/terminal.c

+ 1 - 2
apps/terminal.c

@@ -2490,8 +2490,7 @@ int main(int argc, char ** argv) {
 		/* Execute requested initial process */
 		if (argv[optind] != NULL) {
 			/* Run something specified by the terminal startup */
-			char * tokens[] = {argv[optind], NULL};
-			execvp(tokens[0], tokens);
+			execvp(argv[optind], &argv[optind]);
 			fprintf(stderr, "Failed to launch requested startup application.\n");
 		} else {
 			/* Run the user's shell */