Syntax error in /usr/share/applications/mate-mimeapps.list

Bug #1673156 reported by Alkis Georgopoulos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-mate-settings (Ubuntu)
Fix Released
Medium
Martin Wimpress 
Xenial
Triaged
Low
Martin Wimpress 

Bug Description

The lines in /usr/share/applications/mate-mimeapps.list end in semicolons while they shouldn't; and that breaks xdg-mime and xdg-open.

Specifically:
$ grep plain /usr/share/applications/mate-mimeapps.list
text/plain=pluma.desktop;

That should be like that instead:
text/plain=pluma.desktop

A small effect of of the issue is:
$ xdg-mime query default text/plain
pluma.desktop;

That should return plain "pluma.desktop".

To see a more severe effect, we have to symlink that file to /etc/xdg/mimeapps.list, otherwise xdg-open falls back to gvfs-open and mate-mimeapps.list isn't used at all!
sudo ln -s /usr/share/applications/mate-mimeapps.list /etc/xdg/mimeapps.list
sudo strace -e trace=file xdg-open /etc/adduser.conf 2>&1 | grep "desktop;"
...
faccessat(AT_FDCWD, "/usr/share//applications//pluma.desktop;", R_OK) = -1 ENOENT (No such file or directory)

I.e. it tries to find a "pluma.desktop;" file and fails, instead of searching for "pluma.desktop".
Then it opens the file with "less" and "libreoffice" at the same time!

==> I propose that /usr/share/applications/mate-mimeapps.list gets dropped completely.
ubuntu-mate-default-settings ships /usr/share/mate/applications/defaults.list as well, and that one is more complete and doesn't have syntax errors.

Changed in ubuntu-mate-settings (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Martin Wimpress (flexiondotorg)
status: Triaged → In Progress
Changed in ubuntu-mate-settings (Ubuntu Xenial):
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Martin Wimpress (flexiondotorg)
Changed in ubuntu-mate-settings (Ubuntu):
status: In Progress → Fix Committed
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-mate-settings - 17.04.2

---------------
ubuntu-mate-settings (17.04.2) zesty; urgency=medium

  * Fix mate-mimeapps.list by removing trailing semi-colon. (LP: #1673156)
  * Add missing Brisk Menu pinned shortcuts.
  * Add missing Pantheon layouts.

 -- Martin Wimpress <email address hidden> Wed, 15 Mar 2017 16:19:50 +0000

Changed in ubuntu-mate-settings (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.