diff options
| author | John Kehayias <john.kehayias@protonmail.com> | 2025-02-16 18:50:04 -0500 |
|---|---|---|
| committer | John Kehayias <john.kehayias@protonmail.com> | 2025-02-16 18:50:04 -0500 |
| commit | 2ed247c0c86b8cfefe1cb689a94a635e204bada6 (patch) | |
| tree | fd77340d3cf6dcb75bf60b72ae1e63aeb11d59c1 | |
| parent | 8327932008c1c5e5d541d872ecac8b1f4f5beef0 (diff) | |
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).
| -rw-r--r-- | nongnu/packages/game-client.scm | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/nongnu/packages/game-client.scm b/nongnu/packages/game-client.scm index f7cb4c1..b434285 100644 --- a/nongnu/packages/game-client.scm +++ b/nongnu/packages/game-client.scm | |||
| @@ -81,11 +81,16 @@ | |||
| 81 | ;; Use the more standard lib directory for everything. | 81 | ;; Use the more standard lib directory for everything. |
| 82 | (rename-file "opt/" "lib") | 82 | (rename-file "opt/" "lib") |
| 83 | ;; Remove unneeded files. | 83 | ;; Remove unneeded files. |
| 84 | (delete-file-recursively "usr") | 84 | (delete-file-recursively "usr"))) |
| 85 | ;; Fix the .desktop file binary location. | 85 | ;; Fix the .desktop file "Exec" line to just be "heroic" in |
| 86 | (substitute* '("share/applications/heroic.desktop") | 86 | ;; order for this desktop file to be useful to launch heroic in |
| 87 | (("/opt/Heroic/") | 87 | ;; the container (heroic package) as well. |
| 88 | (string-append #$output "/bin/"))))) | 88 | (add-after 'patch-dot-desktop-files 'fix-desktop-file |
| 89 | (lambda _ | ||
| 90 | (substitute* | ||
| 91 | (string-append #$output "/share/applications/heroic.desktop") | ||
| 92 | (("Exec=.*/heroic") "Exec=heroic")))) | ||
| 93 | (delete 'patch-dot-desktop-files) | ||
| 89 | (add-after 'install 'symlink-binary-file | 94 | (add-after 'install 'symlink-binary-file |
| 90 | (lambda _ | 95 | (lambda _ |
| 91 | (mkdir-p (string-append #$output "/bin")) | 96 | (mkdir-p (string-append #$output "/bin")) |
