gnu: josm: Fix .desktop file.

* gnu/packages/geo.scm (josm)[arguments]: In 'install-share-directories'
phase, change org-openstreetmap-josm-MainApplication to
org-openstreetmap-josm-gui-MainApplication.
This commit is contained in:
Clément Lassieur 2021-09-21 12:24:14 +02:00
parent fd672f30d0
commit f9fd3752f6
No known key found for this signature in database
GPG key ID: 89F96D4808F359C7

View file

@ -1524,14 +1524,17 @@ (define-public josm
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
(share-directories '("applications" "icons" "man" "menu"
"metainfo" "mime" "pixmaps")))
"metainfo" "mime" "pixmaps"))
(desktop "org.openstreetmap.josm.desktop"))
(for-each (lambda (directory)
(copy-recursively (string-append
"native/linux/tested/usr/share/"
directory)
(string-append
out "/share/" directory)))
share-directories))
share-directories)
(substitute* (string-append out "/share/applications/" desktop)
(("josm-MainApplication") "josm-gui-MainApplication")))
#t))
(add-after 'install 'install-bin
(lambda* (#:key outputs inputs #:allow-other-keys)