mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-12-23 15:24:52 +01:00
nongnu: firefox: Use absolute filename for symlink target of icons.
* nongnu/packages/mozilla.scm (firefox)[arguments]: In install-desktop-entry
phase, use absolute name file for symlink target of icons.
Revert e3c50e1385
.
Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
parent
3783cf2b51
commit
2a954a4181
1 changed files with 11 additions and 12 deletions
|
@ -324,8 +324,7 @@
|
|||
(applications (string-append out "/share/applications")))
|
||||
(substitute* desktop-file
|
||||
(("^Exec=firefox") (string-append "Exec=" out "/bin/firefox"))
|
||||
(("^Icon=.*") (string-append "Icon=" out
|
||||
"/lib/firefox/browser/chrome/icons/default/default128.png\n"))
|
||||
(("Icon=.*") "Icon=firefox\n")
|
||||
(("NewWindow") "new-window")
|
||||
(("NewPrivateWindow") "new-private-window"))
|
||||
(install-file desktop-file applications))
|
||||
|
@ -336,16 +335,16 @@
|
|||
(icon-source-dir
|
||||
(string-append
|
||||
out "/lib/firefox/browser/chrome/icons/default")))
|
||||
(with-directory-excursion icon-source-dir
|
||||
(for-each
|
||||
(lambda (size)
|
||||
(let ((dest (string-append out "/share/icons/hicolor/"
|
||||
size "x" size "/apps")))
|
||||
(mkdir-p dest)
|
||||
(symlink (string-append "default" size ".png")
|
||||
(string-append dest "/firefox.png"))))
|
||||
'("16" "32" "48" "64" "128"))
|
||||
#t)))))
|
||||
(for-each
|
||||
(lambda (size)
|
||||
(let ((dest (string-append out "/share/icons/hicolor/"
|
||||
size "x" size "/apps")))
|
||||
(mkdir-p dest)
|
||||
(symlink (string-append icon-source-dir
|
||||
"/default" size ".png")
|
||||
(string-append dest "/firefox.png"))))
|
||||
'("16" "32" "48" "64" "128"))
|
||||
#t))))
|
||||
|
||||
;; Test will significantly increase build time but with little rewards.
|
||||
#:tests? #f
|
||||
|
|
Loading…
Reference in a new issue