Andy Wingo skribis: > I think it's reasonable to want to be able to open PDFs in inkscape or > GIMP (e.g. via the "Open With" menu in a file browser like Nautilus), > just that they shouldn't be the default option. I think removing the > association would be a not-so-good option; the blessed way to fix this > is apparently to install a set of defaults. > > Specifically we should add to this package from gnome.scm to include the > PDF -> evince association: > > (define-public gnome-default-applications > (package > (name "gnome-default-applications") > (version "0") > (build-system trivial-build-system) > (source #f) > (propagated-inputs > `(("nautilus" ,nautilus))) > (arguments > `(#:modules ((guix build utils)) > #:builder > (begin > (use-modules (guix build utils)) > (let* ((out (assoc-ref %outputs "out")) > (apps (string-append out "/share/applications"))) > (mkdir-p apps) > (call-with-output-file (string-append apps "/defaults.list") > (lambda (port) > (format port "[Default Applications]\n") > (format port "inode/directory=org.gnome.Nautilus.desktop\n"))) > #t)))) > (synopsis "Default MIME type associations for the GNOME desktop") > (description > "Given many installed packages which might handle a given MIME type, a > user running the GNOME desktop probably has some preferences: for example, > that folders be opened by default by the Nautilus file manager, not the Baobab > disk usage analyzer. This package establishes that set of default MIME type > associations for GNOME.") > (license license:gpl3+) > (home-page #f))) Like this?