..
original commit: 6bd6189f11980d73a822fa8497ceb6cfdb2f8154
This commit is contained in:
parent
6816de50a4
commit
b64702832b
|
@ -14,15 +14,16 @@
|
||||||
(parameterize ([current-input-port null-input]
|
(parameterize ([current-input-port null-input]
|
||||||
[current-error-port null-output] ; comment out this line to see error messages
|
[current-error-port null-output] ; comment out this line to see error messages
|
||||||
[current-output-port null-output])
|
[current-output-port null-output])
|
||||||
(case (system-type)
|
(cond
|
||||||
[(macos)
|
[(eq? (system-type) 'macos)
|
||||||
;; actually, I think GURL means something slightly different...
|
;; actually, I think GURL means something slightly different...
|
||||||
(send-event "MACS" "GURL" "GURL" str)]
|
(send-event "MACS" "GURL" "GURL" str)]
|
||||||
[(macosx)
|
[(or (eq? (system-type) 'macosx)
|
||||||
|
(equal? "ppc-macosxonx" (system-library-subpath)))
|
||||||
(system (format "osascript -e 'open location \"~a\"'" str))]
|
(system (format "osascript -e 'open location \"~a\"'" str))]
|
||||||
[(windows)
|
[(eq? (system-type) 'windows)
|
||||||
(shell-execute #f str "" (current-directory) 'SW_SHOWNORMAL)]
|
(shell-execute #f str "" (current-directory) 'SW_SHOWNORMAL)]
|
||||||
[(unix)
|
[(eq? (system-type) 'unix)
|
||||||
(let ([preferred (get-preference 'external-browser (lambda () #f))])
|
(let ([preferred (get-preference 'external-browser (lambda () #f))])
|
||||||
(cond
|
(cond
|
||||||
[(and (or (not preferred)
|
[(and (or (not preferred)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user