From 725fac1757f754c5b1c8267f6877b013fc3f4fe6 Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Tue, 27 Jul 2021 19:53:22 -0700 Subject: Improved launching windows applications --- windows/draw.c | 3 ++- windows/make_icon.rc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 windows/make_icon.rc (limited to 'windows') diff --git a/windows/draw.c b/windows/draw.c index 9769208..28bef68 100644 --- a/windows/draw.c +++ b/windows/draw.c @@ -16,10 +16,11 @@ void launch(){ file[0] = '\0'; if(!(strcmp(program, "./"))){ + strcat(file, "/C "); strcat(file, "\""); strcat(file, path); strcat(file, "\""); - ShellExecute(NULL, NULL, file, NULL, NULL, SW_SHOW); + ShellExecute(NULL, NULL, "cmd.exe", file, NULL, SW_HIDE); } else{ diff --git a/windows/make_icon.rc b/windows/make_icon.rc new file mode 100644 index 0000000..ccfccbd --- /dev/null +++ b/windows/make_icon.rc @@ -0,0 +1 @@ +id ICON "../icon/icon.ico" -- cgit