windows start

main
Matthew Butterick 6 years ago committed by GitHub
parent 14bfded3f0
commit ddb732dffb

@ -36,9 +36,10 @@
(define (VIEW-RESULT)
(define open-string
(case (system-type 'os)
('macosx "open ~a")
('unix "xdg-open ~a &> /dev/null")
(else (error "Don't know how to open PDF file."))))
['macosx "open ~a"]
['windows "start ~a"]
['unix "xdg-open ~a &> /dev/null"]
[else (error "Don't know how to open PDF file.")]))
(when (file-exists? pdf-path)
(void (system (format open-string pdf-path)))))
(module+ main

Loading…
Cancel
Save