From: Christian Weiske Date: Tue, 17 Mar 2015 09:52:53 +0000 (+0100) Subject: (no commit message) X-Git-Url: https://git.cweiske.de/paste/178.git/commitdiff_plain/46337d44a05e8c81518e45aad0d2e4d4ce0e911f?ds=sidebyside --- 46337d44a05e8c81518e45aad0d2e4d4ce0e911f diff --git a/mate-xdg-open-file-associations.rst b/mate-xdg-open-file-associations.rst new file mode 100644 index 0000000..e4bb1e0 --- /dev/null +++ b/mate-xdg-open-file-associations.rst @@ -0,0 +1,29 @@ +Problem +======= +Opening a zip file with ``xdg-open`` opens ``less`` of the file contents in ``mate-terminal``:: + + $ xdg-open file.zip + +This crashes mate-terminal; see http://p.cweiske.de/177 + + +Fix +=== +File associations in ``xdg-open`` are loaded from the following locations: + +* ``~/.local/share/applications/mimeapps.list`` +* ``/usr/share/mate/applications/defaults.list`` +* ``/usr/share/applications/defaults.list`` + +It found the last file only and found ``file-roller.desktop`` in it for the zip file:: + + application/zip=file-roller.desktop + +Then it looked for ``file-roller.desktop`` in multiple directories, including +``~/.local/share/applications/file-roller.desktop``. +Mate uses ``engrampa`` as archive management tool, so I symlinked that one:: + + $ cd .local/share/applications/ + $ ln -s /usr/share/applications/engrampa.desktop file-roller.desktop + +This fixes all file-roller associations in ``defaults.list``, which are about 20.