From f9227cef5bcbe9f3a3fe3487ed1cc358cff37932 Mon Sep 17 00:00:00 2001 From: louie Date: Wed, 23 Dec 2020 18:20:46 -0800 Subject: Fixed Windows configuration auto-generation, added new setLauncherRaw option --- draw.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'draw.c') diff --git a/draw.c b/draw.c index 7e58d23..c4d00c8 100644 --- a/draw.c +++ b/draw.c @@ -437,7 +437,7 @@ char *get_launch(){ char *program = get_gprog(g[g_hover]); char *flags = get_gflags(g[g_hover]); char *path = get_epath(e[e_hover]); - bool force = get_eforce(e[e_hover]); + bool quotes = get_gquotes(g[g_hover]); char *full_command = malloc(sizeof(char) * BUF_LEN); full_command[0] = '\0'; @@ -450,9 +450,9 @@ char *get_launch(){ } else{ - strcat(full_command, "\""); + if(quotes) strcat(full_command, "\""); strcat(full_command, program); - strcat(full_command, "\""); + if(quotes) strcat(full_command, "\""); if(flags[0] !='\0'){ strcat(full_command, " "); strcat(full_command, flags); @@ -472,6 +472,7 @@ void win_launch(){ char *program = get_gprog(g[g_hover]); char *flags = get_gflags(g[g_hover]); char *path = get_epath(e[e_hover]); + bool quotes = get_gquotes(g[g_hover]); char file[BUF_LEN]; char params[BUF_LEN]; @@ -485,9 +486,9 @@ void win_launch(){ } else{ - strcat(file, "\""); + if(quotes) strcat(file, "\""); strcat(file, program); - strcat(file, "\""); + if(quotes) strcat(file, "\""); params[0] = '\0'; if(flags[0] != '\0'){ -- cgit