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:
parent
eb2a74aaba
commit
6cb6f3fbf1
|
@ -419,9 +419,9 @@
|
|||
;; in the configuration directory:
|
||||
(values
|
||||
(let* ([d (find-config-dir)]
|
||||
[f (and d (build-path d "racket-prefs.rktd"))])
|
||||
(if (file-exists? f)
|
||||
f
|
||||
[c-f (and d (build-path d "racket-prefs.rktd"))])
|
||||
(if (and c-f (file-exists? c-f))
|
||||
c-f
|
||||
;; Trigger a filesystem error:
|
||||
(call-with-input-file* f void)))
|
||||
#f))))))])
|
||||
|
|
Loading…
Reference in New Issue
Block a user