summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie Shprung <louie.shprung@iridium.com>2021-07-27 19:53:22 -0700
committerLouie Shprung <louie.shprung@iridium.com>2021-07-27 19:53:22 -0700
commit725fac1757f754c5b1c8267f6877b013fc3f4fe6 (patch)
tree807802d0e4b0fd9011af5af785b4a6dd087a8757
parent78fa8d51fd08795dd7b3a5d4a2f675f7d213ebf1 (diff)
Improved launching windows applications
-rw-r--r--windows/draw.c3
-rw-r--r--windows/make_icon.rc1
2 files changed, 3 insertions, 1 deletions
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"