gnu: gnome-default-applications: Add Evince for PDF and PS.

* gnu/packages/gnome.scm (gnome-default-applications)[propagated-inputs]:
Add EVINCE.
[arguments]: Associate Evince with application/pdf and
application/postscript.
This commit is contained in:
Ludovic Courtès 2017-12-01 15:37:08 +01:00
parent 4afc903a8c
commit 8ad4f0aa31
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 5 additions and 2 deletions

View File

@ -5870,7 +5870,8 @@ software that do not provide their own configuration interface.")
(build-system trivial-build-system) (build-system trivial-build-system)
(source #f) (source #f)
(propagated-inputs (propagated-inputs
`(("nautilus" ,nautilus))) `(("nautilus" ,nautilus)
("evince" ,evince)))
(arguments (arguments
`(#:modules ((guix build utils)) `(#:modules ((guix build utils))
#:builder #:builder
@ -5882,7 +5883,9 @@ software that do not provide their own configuration interface.")
(call-with-output-file (string-append apps "/defaults.list") (call-with-output-file (string-append apps "/defaults.list")
(lambda (port) (lambda (port)
(format port "[Default Applications]\n") (format port "[Default Applications]\n")
(format port "inode/directory=org.gnome.Nautilus.desktop\n"))) (format port "inode/directory=org.gnome.Nautilus.desktop\n")
(format port "application/pdf=evince.desktop\n")
(format port "application/postscript=evince.desktop\n")))
#t)))) #t))))
(synopsis "Default MIME type associations for the GNOME desktop") (synopsis "Default MIME type associations for the GNOME desktop")
(description (description