gnu: heroic-client: Fix .desktop file.
* nongnu/packages/game-client.scm (heroic-client)[arguments]<#:phases>: Add fix-desktop-file phase to set the "Exec" line to "heroic" to run the correct binary. Remove setting the full store path in the .desktop file in the setup-cwd phase. Delete the patch-dot-desktop-files phase (not needed).
This commit is contained in:
parent
8327932008
commit
2ed247c0c8
|
@ -81,11 +81,16 @@
|
||||||
;; Use the more standard lib directory for everything.
|
;; Use the more standard lib directory for everything.
|
||||||
(rename-file "opt/" "lib")
|
(rename-file "opt/" "lib")
|
||||||
;; Remove unneeded files.
|
;; Remove unneeded files.
|
||||||
(delete-file-recursively "usr")
|
(delete-file-recursively "usr")))
|
||||||
;; Fix the .desktop file binary location.
|
;; Fix the .desktop file "Exec" line to just be "heroic" in
|
||||||
(substitute* '("share/applications/heroic.desktop")
|
;; order for this desktop file to be useful to launch heroic in
|
||||||
(("/opt/Heroic/")
|
;; the container (heroic package) as well.
|
||||||
(string-append #$output "/bin/")))))
|
(add-after 'patch-dot-desktop-files 'fix-desktop-file
|
||||||
|
(lambda _
|
||||||
|
(substitute*
|
||||||
|
(string-append #$output "/share/applications/heroic.desktop")
|
||||||
|
(("Exec=.*/heroic") "Exec=heroic"))))
|
||||||
|
(delete 'patch-dot-desktop-files)
|
||||||
(add-after 'install 'symlink-binary-file
|
(add-after 'install 'symlink-binary-file
|
||||||
(lambda _
|
(lambda _
|
||||||
(mkdir-p (string-append #$output "/bin"))
|
(mkdir-p (string-append #$output "/bin"))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user