setup/unixstyle-install: fix DESTDIR mode for ".desktop" fixup

Closes #1143
This commit is contained in:
Matthew Flatt 2015-11-24 09:49:09 -07:00
parent b443f3fe68
commit 050f708879

View File

@ -281,10 +281,10 @@
;; Assume anything after a space is the argument spec:
(let ([m (regexp-match #rx"Exec=([^ ]*)(.*)" l)])
(format "Exec=~a~a"
(fixup-path bindir (cadr m))
(fixup-path (dir: 'bin) (cadr m))
(caddr m)))]
[(regexp-match? #rx"^Icon=" l)
(format "Icon=~a" (fixup-path sharerktdir (substring l 5)))]
(format "Icon=~a" (fixup-path (dir: 'sharerkt) (substring l 5)))]
[else l])))
(unless (equal? ls new-ls)
(call-with-output-file (build-path appsdir d)