diff options
author | Louie Shprung <lshprung@tutanota.com> | 2024-08-30 14:49:00 -0400 |
---|---|---|
committer | Louie Shprung <lshprung@tutanota.com> | 2024-08-30 14:49:00 -0400 |
commit | a3d9eb21789bf3587f176e6d155d610b8bc69dab (patch) | |
tree | 0c0ffbc1498f95d4af70b40641a8fcd2ca84c6b0 /src | |
parent | a77f5393a584338561f217d3f87832e910bf937a (diff) |
Remove quotes from get_launchtesting
Diffstat (limited to 'src')
-rw-r--r-- | src/draw.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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; |