guix: renpy-build-system: Quote data directory.
This prevents generated launchers and desktop files from inadvertently crashing if the directory name contains a space. * gnu/build/renpy-build-system.scm (install, install-desktop-file): Use ~s to format data directory.
This commit is contained in:
parent
53c40b3c77
commit
a1fd8f01b2
|
@ -57,7 +57,7 @@ (define* (install #:key outputs game (output "out") #:allow-other-keys)
|
|||
(delete-file (string-append data "/renpy-build.json"))
|
||||
(call-with-output-file launcher
|
||||
(lambda (port)
|
||||
(format port "#!~a~%~a ~a \"$@\""
|
||||
(format port "#!~a~%~a ~s \"$@\""
|
||||
(which "bash")
|
||||
(which "renpy")
|
||||
data)))
|
||||
|
@ -77,8 +77,9 @@ (define* (install-desktop-file #:key outputs game (output "out")
|
|||
(string-append out "/share/applications/" executable-name ".desktop")
|
||||
#:name (assoc-ref json-dump "name")
|
||||
#:generic-name (assoc-ref build "display_name")
|
||||
#:exec (string-append (which "renpy") " "
|
||||
out "/share/renpy/" directory-name)
|
||||
#:exec (format #f "~a ~s"
|
||||
(which "renpy")
|
||||
(string-append out "/share/renpy/" directory-name))
|
||||
#:categories '("Game" "Visual Novel")))
|
||||
#t)
|
||||
|
||||
|
|
Loading…
Reference in a new issue