raco exe: fix GUI executables for runnnig without a preference file

A check for a default preferences file in the configuration
directory failed, because there is no configuration directory
to check.

Closes PR 14370
This commit is contained in:
Matthew Flatt 2014-02-25 13:33:17 -07:00
parent eb2a74aaba
commit 6cb6f3fbf1

View File

@ -419,9 +419,9 @@
;; in the configuration directory: ;; in the configuration directory:
(values (values
(let* ([d (find-config-dir)] (let* ([d (find-config-dir)]
[f (and d (build-path d "racket-prefs.rktd"))]) [c-f (and d (build-path d "racket-prefs.rktd"))])
(if (file-exists? f) (if (and c-f (file-exists? c-f))
f c-f
;; Trigger a filesystem error: ;; Trigger a filesystem error:
(call-with-input-file* f void))) (call-with-input-file* f void)))
#f))))))]) #f))))))])