Feature #312

Use desktop preferences for opening attachments

Added by Ricardo Mones 4 months ago. Updated 3 months ago.

Status:NewStart date:03/07/2019
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-Spent time:-
Target version:-

Description

Original reporter says:
----
Sylpheed does not take into account the XDG default application the desktop environment should use for opening files of a specific MIME/Filetype.

Example:
. when I tried to open a PDF file, Sylpheed uses gimp to open the file.

Gimp is the first application in the /usr/share/applications/mimeinfo.cache entry defining which application(s) can read/open/associate with pdf files.

$ grep application/pdf /usr/share/applications/mimeinfo.cache
application/pdf=gimp.desktop;inkscape.desktop;org.gnome.Evince.desktop;libreoffice-draw.desktop;

It should use my desktop's default application from Debian Gnome default spec in /usr/share/applications/gnome-mimeapps.list to open PDF files.

$ grep -i pdf /usr/share/applications/gnome-mimeapps.list
application/pdf=org.gnome.Evince.desktop

This association can be found using the xdg-mime command:
$ xdg-mime query default application/pdf
org.gnome.Evince.desktop
----

See https://bugs.debian.org/921945

History

#1 Updated by Antonio Ospite 3 months ago

Ricardo Mones wrote:

Original reporter says:
----
Sylpheed does not take into account the XDG default application the desktop environment should use for opening files of a specific MIME/Filetype.

Example:
. when I tried to open a PDF file, Sylpheed uses gimp to open the file.

I work around this by choosing "Open with" from the attachment tab and always using

xdg-open '%s'

but yeah, a native solution would be great.

Also available in: Atom PDF