Commit 41761a13 authored by Allison Karlitskaya's avatar Allison Karlitskaya

mimeapps test: fix defaults vs. recommended

The desktop file for myapp3 didn't declare support for image/png, but
the testcase expects it to be recommended on the basis of it being the
default app according to defaults.list.

This will not work in the future -- we will only list apps that actually
support the filetype in question, unless they've been explicitly added
as associations.

https://bugzilla.gnome.org/show_bug.cgi?id=728040
parent 84e9829f
......@@ -55,7 +55,8 @@ const gchar *myapp3_data =
"Version=1.0\n"
"Type=Application\n"
"Exec=sleep 1\n"
"Name=my app 3\n";
"Name=my app 3\n"
"MimeType=image/png;";
const gchar *myapp4_data =
"[Desktop Entry]\n"
......@@ -91,7 +92,8 @@ const gchar *defaults_data =
const gchar *mimecache_data =
"[MIME Cache]\n"
"image/bmp=myapp4.desktop;myapp5.desktop;\n";
"image/bmp=myapp4.desktop;myapp5.desktop;\n"
"image/png=myapp3.desktop;\n";
/* Set up XDG_DATA_HOME and XDG_DATA_DIRS.
* XDG_DATA_DIRS/applications will contain defaults.list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment