This commit is contained in:
Nishi 2025-12-28 18:17:50 +09:00
commit 7049e36386
Signed by: nishi
GPG key ID: 27EF69B208EB9343

View file

@ -29,11 +29,11 @@ static int calc_size(MwWidget box, xl_node_t* node) {
return (gap + 18) * ((c + (c % 2)) / 2) - gap; return (gap + 18) * ((c + (c % 2)) / 2) - gap;
} }
static void exec_button(MwWidget handle, void* user, void* client){ static void exec_button(MwWidget handle, void* user, void* client) {
char** args = MDEStringToExec(MwGetText(handle, "Sexec"), NULL); char** args = MDEStringToExec(MwGetText(handle, "Sexec"), NULL);
int i; int i;
if(fork() == 0){ if(fork() == 0) {
execvp(args[0], args); execvp(args[0], args);
_exit(-1); _exit(-1);
} }