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

2015-04-14 Thread Emilio Recio
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.


___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


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

2015-04-05 Thread Adam Tauno Williams
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/

-- 
Adam Tauno Williams  GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


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

2015-04-03 Thread Andre Klapper
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.  The strangest one, which I got just lately gives
> me this choice: 
>   * Save As 
>   * Libre Office Write 
>   * Abiword 
>   * Okular 
>   * Calligra Words 
>   * Other Application

Looks like a list of applications that registered on your system as "I
can open files with the MIME type "application/pdf"."

> Other Application gives a very strange list: 
>   * Account Wizarg 
>   * Akregator 
>   * Amarok 
>   * Amarok 
>   * AMZ Downloader 
>   * ... 
>   * Okular <16 times> 
>   * ... 
>   * Yumex Package Installer

Looks like a list of applications that can open files with MIME type
"application/octet-stream" or some other fallback MIME type, if the
sender's application did not manage to set a correct MIME type.

andre
-- 
Andre Klapper  |  ak...@gmx.net
http://blogs.gnome.org/aklapper/

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


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

2015-04-02 Thread Jonathan Ryshpan
Evolution gives me a different set of apps to open PDF attachments for
different messages.  The strangest one, which I got just lately gives me
this choice:

  * Save As
  * Libre Office Write
  * Abiword
  * Okular
  * Calligra Words
  * Other Application

Other Application gives a very strange list:

  * Account Wizarg
  * Akregator
  * Amarok
  * Amarok
  * AMZ Downloader
  * ...
  * Okular <16 times>
  * ...
  * Yumex Package Installer

One thing NOT included among the "Other Applications" is acroread, which
is installed on my system, and which is what I wanted.  (It is, of
course, possible to open attachments as desired by saving them and then
opening the files saved.)

As I wrote, these lists are different for PDF attachments contained in
different emails.  How does evolution generate these lists?  Is there
any convenient way to change them?

Thanks - jon

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list