From 7694a014eed1754b6e24ad593ec1f2b38ad554b6 Mon Sep 17 00:00:00 2001 From: Robby Findler Date: Tue, 26 Sep 2006 13:44:48 +0000 Subject: [PATCH] changed the 'auto-open' link in emails with attachments svn: r4437 --- collects/sirmail/readr.ss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/collects/sirmail/readr.ss b/collects/sirmail/readr.ss index f025b60438..dd774edc9c 100644 --- a/collects/sirmail/readr.ss +++ b/collects/sirmail/readr.ss @@ -2517,8 +2517,8 @@ (when fn (let ([full-fn (if (and (path-string? fn) (let-values ([(base name dir?) (split-path fn)]) - (not base))) - (normalize-path (build-path "~/Desktop" fn)) + (not (path? base)))) + (path->string (normalize-path (build-path "~/Desktop" fn))) fn)]) (insert " " set-standard-style) (insert "[save & open]" @@ -2527,7 +2527,7 @@ (lambda (a b c) (to-file full-fn) (parameterize ([current-input-port (open-input-string "")]) - (system* "/usr/bin/open" (path->string full-fn)))) + (system* "/usr/bin/open" full-fn))) #f #f) (send t change-style url-delta s e))))))) (insert "\n" set-standard-style)