From a3d9eb21789bf3587f176e6d155d610b8bc69dab Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Fri, 30 Aug 2024 14:49:00 -0400 Subject: Remove quotes from get_launch --- src/draw.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/draw.c') diff --git a/src/draw.c b/src/draw.c index 7303ff6..3412185 100644 --- a/src/draw.c +++ b/src/draw.c @@ -556,28 +556,21 @@ char *get_launch(){ char *program = get_gprog(g[g_hover]); char *flags = get_gflags(g[g_hover]); char *path = get_epath(entries[e_hover[g_hover]]); - bool quotes = false; char *full_command = calloc(BUF_LEN, sizeof(char)); //if the entry is an executable file (doesn't have a launcher) if(!(strcmp(program, "./"))){ - strcat(full_command, "\""); strcat(full_command, path); - strcat(full_command, "\""); } else{ - if(quotes) strcat(full_command, "\""); strcat(full_command, program); - if(quotes) strcat(full_command, "\""); if(flags[0] !='\0'){ strcat(full_command, " "); strcat(full_command, flags); } strcat(full_command, " "); - strcat(full_command, "\""); strcat(full_command, path); - strcat(full_command, "\""); } return full_command; -- cgit