summaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-12-23 18:20:46 -0800
committerlouie <lshprung@yahoo.com>2020-12-23 18:20:46 -0800
commitf9227cef5bcbe9f3a3fe3487ed1cc358cff37932 (patch)
tree5a009fd6587f075c5a48a9b8c665347ed151507e /draw.c
parentfa8e3992ef7060168770ccccabdfe3b2982ea700 (diff)
Fixed Windows configuration auto-generation, added new setLauncherRaw option
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c11
1 files changed, 6 insertions, 5 deletions
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'){