FS#36085 - [abiword] .desktop MimeType entry includes plain text formats like text/plain, xml formats, etc
Attached to Project:
Arch Linux
Opened by Marco Scannadinari (zheoffec) - Tuesday, 09 July 2013, 17:00 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 04 May 2016, 13:07 GMT
Opened by Marco Scannadinari (zheoffec) - Tuesday, 09 July 2013, 17:00 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 04 May 2016, 13:07 GMT
|
Details
Description:
The .desktop file in /usr/share/applications/' MimeType entry contains various plain text formats not intended for a word processor such as text/plain, text/html, some xml formats, and others which, in the GNOME desktop anyway, causes trouble with filetype associations and their default applications. Additional info: * `pacman -Q abiword`: abiword 2.8.6-9 * `xdg-mime query default text/plain` abiword.desktop * Relevant .desktop extract: "MimeType=application/x-abiword;text/x-abiword;text/x-xml-abiword;text/plain;application/msword;application/rtf;application/vnd.plain;application/xhtml+xml;text/html;application/x-crossmark;application/docbook+xml;application/x-t602;application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.sun.xml.writer;application/vnd.stardivision.writer;text/vnd.wap.wml;application/wordperfect6;application/wordperfect5.1;application/vnd.wordperfect;application/x-abicollab;" Steps to reproduce: `# pacman -S abiword` |
This task depends upon
Closed by Jan de Groot (JGC)
Wednesday, 04 May 2016, 13:07 GMT
Reason for closing: Won't fix
Additional comments about closing: abiword can edit text/plain, so it's in mimetypes. This is an issue covered by several other bugreports too, not an abiword issue.
Wednesday, 04 May 2016, 13:07 GMT
Reason for closing: Won't fix
Additional comments about closing: abiword can edit text/plain, so it's in mimetypes. This is an issue covered by several other bugreports too, not an abiword issue.
FS#35528. LibreOffice has this association, too. We should not modify upstream's desktop files but set some sensible default applications.My workaround was to blacklist it by putting `text/plain=aegisub.desktop;' under the `[Removed Associations]' section in $XDG_DATA_HOME/applications/mimeapps.lst.
Shipping a default.lst can be a solution, but obviously it's a subjective decision what is good to be the default. I get the feeling Arch Linux packagers are quite reluctant to do such dirty stuff.
As a second step we could collect more problematic Mime types and add rules for these. For examples File Roller registers application/x-ms-dos-executable although Wine should probably be the default. It's just useless to open an exe-file as an archive.
I would also be interested in a defaults.list, which makes Gnome applications the default. Same could be done for Xfce and LXDE.
For me, I probably wouldn't want a defaults.lst shipped for me, but would rather prefer editting mimeapps.lst myself.
Either way, a nicely compiled mime action list would be very welcome indeed.