** Description changed:

  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 
+ $ 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
+ 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/local/share//applications//pluma.desktop;", R_OK) = 
-1 ENOENT (No such file or directory)
+ 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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1673156

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to