Skip to content

Commit

Permalink
[7_8] fix crashing caused by missing gs binary on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jingkaimori committed Dec 11, 2023
1 parent 78e5ee6 commit 48d1f4e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Plugins/Ghostscript/gs_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ gs_system () {
url gs= url_system ("C:\\") * url_wildcard ("Program Files*") *
url_system ("gs") * url_wildcard ("gs*") * url_system ("bin") *
url_wildcard ("gswin*c.exe");
return materialize (gs);
if (exists (gs)) {
return materialize (gs);
}
else {
return "gs.exe";
}
#else
return "gs";
#endif
Expand Down

0 comments on commit 48d1f4e

Please sign in to comment.