summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@tutanota.com>2024-08-30 14:49:00 -0400
committerLouie Shprung <lshprung@tutanota.com>2024-08-30 14:49:00 -0400
commita3d9eb21789bf3587f176e6d155d610b8bc69dab (patch)
tree0c0ffbc1498f95d4af70b40641a8fcd2ca84c6b0
parenta77f5393a584338561f217d3f87832e910bf937a (diff)
Remove quotes from get_launchtesting
-rw-r--r--src/draw.c7
1 files changed, 0 insertions, 7 deletions
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;