Activity log for bug #1673156

Date Who What changed Old value New value Message
2017-03-15 16:39:32 Alkis Georgopoulos bug added bug
2017-03-15 16:40:09 Martin Wimpress  ubuntu-mate-settings (Ubuntu): status New Triaged
2017-03-15 16:40:13 Martin Wimpress  ubuntu-mate-settings (Ubuntu): importance Undecided Medium
2017-03-15 16:40:15 Martin Wimpress  ubuntu-mate-settings (Ubuntu): assignee Martin Wimpress (flexiondotorg)
2017-03-15 16:40:25 Martin Wimpress  nominated for series Ubuntu Xenial
2017-03-15 16:40:25 Martin Wimpress  bug task added ubuntu-mate-settings (Ubuntu Xenial)
2017-03-15 16:40:38 Martin Wimpress  ubuntu-mate-settings (Ubuntu): status Triaged In Progress
2017-03-15 16:40:42 Martin Wimpress  ubuntu-mate-settings (Ubuntu Xenial): status New Triaged
2017-03-15 16:40:45 Martin Wimpress  ubuntu-mate-settings (Ubuntu Xenial): importance Undecided Low
2017-03-15 16:40:49 Martin Wimpress  ubuntu-mate-settings (Ubuntu Xenial): assignee Martin Wimpress (flexiondotorg)
2017-03-15 16:46:20 Martin Wimpress  ubuntu-mate-settings (Ubuntu): status In Progress Fix Committed
2017-03-15 17:57:10 Alkis Georgopoulos 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. 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.
2017-03-15 19:51:51 Launchpad Janitor ubuntu-mate-settings (Ubuntu): status Fix Committed Fix Released