(no commit message)
authorChristian Weiske <cweiske@cweiske.de>
Tue, 17 Mar 2015 09:52:53 +0000 (10:52 +0100)
committerwww-cweiske <www-cweiske@localhost.localdomain>
Tue, 17 Mar 2015 09:52:53 +0000 (10:52 +0100)
mate-xdg-open-file-associations.rst [new file with mode: 0644]

diff --git a/mate-xdg-open-file-associations.rst b/mate-xdg-open-file-associations.rst
new file mode 100644 (file)
index 0000000..e4bb1e0
--- /dev/null
@@ -0,0 +1,29 @@
+Problem\r
+=======\r
+Opening a zip file with ``xdg-open`` opens ``less`` of the file contents in ``mate-terminal``::\r
+\r
+    $ xdg-open file.zip\r
+\r
+This crashes mate-terminal; see http://p.cweiske.de/177\r
+\r
+\r
+Fix\r
+===\r
+File associations in ``xdg-open`` are loaded from the following locations:\r
+\r
+* ``~/.local/share/applications/mimeapps.list``\r
+* ``/usr/share/mate/applications/defaults.list``\r
+* ``/usr/share/applications/defaults.list``\r
+\r
+It found the last file only and found ``file-roller.desktop`` in it for the zip file::\r
+\r
+    application/zip=file-roller.desktop\r
+\r
+Then it looked for ``file-roller.desktop`` in multiple directories, including\r
+``~/.local/share/applications/file-roller.desktop``.\r
+Mate uses ``engrampa`` as archive management tool, so I symlinked that one::\r
+\r
+    $ cd .local/share/applications/\r
+    $ ln -s /usr/share/applications/engrampa.desktop file-roller.desktop\r
+\r
+This fixes all file-roller associations in ``defaults.list``, which are about 20.\r