Skip to content

Commit

Permalink
Hide the command console on Windows used to open the file #6
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreguillot committed Sep 18, 2019
1 parent 55a1dd2 commit 1c21a64
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/faustgen_tilde.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,23 @@ static void faustgen_tilde_open_texteditor(t_faustgen_tilde *x)
char temp[MAXPDSTRING];
sys_bashfilename(faust_opt_manager_get_full_path(x->f_opt_manager, x->f_dsp_name->s_name), temp);
sprintf(message, "\"%s\"", temp);
WinExec(message, SW_HIDE);
return;
#elif __APPLE__
sprintf(message, "open -t %s", faust_opt_manager_get_full_path(x->f_opt_manager, x->f_dsp_name->s_name));
if(system(message))
{

}
return;
#else
sprintf(message, "xdg-open %s", faust_opt_manager_get_full_path(x->f_opt_manager, x->f_dsp_name->s_name));
#endif
system(message);
if(system(message))
{

}
return;
#endif
}
pd_error(x, "faustgen~: no FAUST DSP file defined");
}
Expand Down

0 comments on commit 1c21a64

Please sign in to comment.