summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@tutanota.com>2024-08-14 14:16:54 -0400
committerU-LEIDOS-CORP\shprungl <shprungl@B5K2GR3.corp.leidos.com>2024-08-14 14:16:54 -0400
commitf00cf908fdcdff676e95e563b2a93e2d4af05bc7 (patch)
treee0b81de4c0e150da872b36948d4ad245201ee488
parentb5dd0df1808429a3c0ed1f86256962512b8273f5 (diff)
Compile on Windows
-rw-r--r--.gitignore3
-rw-r--r--src/windows/draw.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 2093e21..7edf854 100644
--- a/.gitignore
+++ b/.gitignore
@@ -58,7 +58,10 @@ Makefile
config.h
nsis/installer.nsi
spec/terminal-media-launcher.spec
+src/icon/*.res
src/terminal-media-launcher
+src/*.dll
+src/*.exe
src/*.o
src/unix/*.o
src/windows/*.o
diff --git a/src/windows/draw.c b/src/windows/draw.c
index 3b06b9f..cbc565f 100644
--- a/src/windows/draw.c
+++ b/src/windows/draw.c
@@ -6,10 +6,10 @@
#include "../include/group.h"
void launch(){
+ ENTRY **e = get_gentries(g[g_hover]);
char *program = get_gprog(g[g_hover]);
char *flags = get_gflags(g[g_hover]);
char *path = get_epath(e[e_hover[g_hover]]);
- bool quotes = get_gquotes(g[g_hover]);
char file[BUF_LEN];
char params[BUF_LEN];
@@ -24,9 +24,7 @@ void launch(){
}
else{
- if(quotes) strcat(file, "\"");
strcat(file, program);
- if(quotes) strcat(file, "\"");
params[0] = '\0';
if(flags[0] != '\0'){