Re: [Evolution] How does evolution choose apps with which to open attachments?



There's a big caveat to the information you posted. If you have nautilus
installed, and a few other file browsers, they use D-Bus. Gnome will
ignore anything in those desktop files and opt for a dbus session call
for starting particular apps over the freedesktop standard. It took me
two weeks to figure that out. I use KDE and couldn't figure out why
nothing was working after installing some gnome application.

-e

On 04/05/15 16:22, Adam Tauno Williams wrote:
On Thu, 2015-04-02 at 16:55 -0700, Jonathan Ryshpan wrote:
Evolution gives me a different set of apps to open PDF attachments for
different messages.

This is part of GNOME, built on top of FreeDesktop standards.  To be
available to GNOME an application publishes and XDG Desktop file; in
that file it includes its name, category, icon, and the types of files
it can work with.

For example /usr/lib64/libreoffice/share/xdg/draw.desktop -

[Desktop Entry]
Version=1.0
Terminal=false
Icon=libreoffice-draw
Type=Application
Categories=Office;FlowChart;Graphics;2DGraphics;VectorGraphics;X-Red-Hat-Base;X-MandrivaLinux-Office-Drawing;
Exec=libreoffice --draw %U
MimeType=application/vnd.oasis.opendocument.graphics;application/vnd.oasis.opendocument.graphics-flat-xml;application/vnd.oasis.opendocument.graphics-template;application/vnd.sun.xml.draw;application/vnd.sun.xml.draw.template;application/vnd.visio;application/x-wpg;application/vnd.corel-draw;application/vnd.ms-publisher;image/x-freehand;application/clarisworks;
Name=LibreOffice Draw
  ...

According to the XDG standard GNOME scans the desktop files and provides
you the appropriate application list.

One thing NOT included among the "Other Applications" is acroread,

It possibly [likely?] does not include a desktop file.  You can easily
create one.

As I wrote, these lists are different for PDF attachments contained in
different emails.  How does evolution generate these lists?

Based off the MIME-type of the attachment.

Is there any convenient way to change them?

Create .desktop files in ~/.local/share/applications/


--

Thanks,
E. Recio

+-------------------------------------------------+
| E. Recio                   | AIM: emrecio       |
| 833 Chestnut East; Ste 600 | Wrk: 215.503.2131  |
| Philadelphia, PA 19107     | Pgr: 877.656.1864  |
+-------------------------------------------------+

Never trust an operating system you don't have sources for. ;-)
-- Unknown source
The information contained in this transmission contains privileged and confidential information. It is 
intended only for the use of the person named above. If you are not the intended recipient, you are hereby 
notified that any review, dissemination, distribution or duplication of this communication is strictly 
prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all 
copies of the original message.

CAUTION: Intended recipients should NOT use email communication for emergent or urgent health care matters.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]