← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1673156] Re: Syntax error in /usr/share/applications/mate-mimeapps.list

 

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 <martin@xxxxxxxxxxxxxxx>  Wed, 15 Mar 2017 16:19:50
+0000

** Changed in: ubuntu-mate-settings (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1673156

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

Status in ubuntu-mate-settings package in Ubuntu:
  Fix Released
Status in ubuntu-mate-settings source package in Xenial:
  Triaged

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-mate-settings/+bug/1673156/+subscriptions