(no commit message)
[paste/178.git] / README.rst
1 Problem\r
2 =======\r
3 Opening a zip file with ``xdg-open`` opens ``less`` of the file contents in ``mate-terminal``::\r
4 \r
5     $ xdg-open file.zip\r
6 \r
7 This crashes mate-terminal; see http://p.cweiske.de/177\r
8 \r
9 \r
10 Fix\r
11 ===\r
12 File associations in ``xdg-open`` are loaded from the following locations:\r
13 \r
14 * ``~/.local/share/applications/mimeapps.list``\r
15 * ``/usr/share/mate/applications/defaults.list``\r
16 * ``/usr/share/applications/defaults.list``\r
17 \r
18 It found the last file only and found ``file-roller.desktop`` in it for the zip file::\r
19 \r
20     application/zip=file-roller.desktop\r
21 \r
22 Then it looked for ``file-roller.desktop`` in multiple directories, including\r
23 ``~/.local/share/applications/file-roller.desktop``.\r
24 Mate uses ``engrampa`` as archive management tool, so I symlinked that one::\r
25 \r
26     $ cd .local/share/applications/\r
27     $ ln -s /usr/share/applications/engrampa.desktop file-roller.desktop\r
28 \r
29 This fixes all file-roller associations in ``defaults.list``, which are about 20.\r
30 \r
31 \r
32 Reported at https://github.com/mate-desktop/mate-menus/issues/28