** Changed in: ubuntu-mate-settings (Ubuntu)
       Status: New => Triaged

** Changed in: ubuntu-mate-settings (Ubuntu)
   Importance: Undecided => Medium

** Changed in: ubuntu-mate-settings (Ubuntu)
     Assignee: (unassigned) => Martin Wimpress (flexiondotorg)

** Also affects: ubuntu-mate-settings (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: ubuntu-mate-settings (Ubuntu)
       Status: Triaged => In Progress

** Changed in: ubuntu-mate-settings (Ubuntu Xenial)
       Status: New => Triaged

** Changed in: ubuntu-mate-settings (Ubuntu Xenial)
   Importance: Undecided => Low

** Changed in: ubuntu-mate-settings (Ubuntu Xenial)
     Assignee: (unassigned) => Martin Wimpress (flexiondotorg)

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

-- 
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 Committed
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 do a few changes in order for 
xdg-open to actually use that file, because by default it falls back to 
gvfs-open and doesn't use it at all.
  sudo mkdir -p /usr/local/share/applications
  sudo ln -s /usr/share/applications/mate-mimeapps.list 
/usr/local/share/applications/mimeapps.list
  sudo strace -e trace=file xdg-open /etc/adduser.conf 2>&1 | grep "desktop;"
  ...
  faccessat(AT_FDCWD, "/usr/local/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

_______________________________________________
Mailing list: https://launchpad.net/~group.of.nepali.translators
Post to     : group.of.nepali.translators@lists.launchpad.net
Unsubscribe : https://launchpad.net/~group.of.nepali.translators
More help   : https://help.launchpad.net/ListHelp

Reply via email to