From 41761a134df118f64ee0316ad83cb7b7e6035145 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Wed, 9 Apr 2014 19:14:37 -0400 Subject: [PATCH] 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 --- gio/tests/mimeapps.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gio/tests/mimeapps.c b/gio/tests/mimeapps.c index 35488e503..2f23dfc94 100644 --- a/gio/tests/mimeapps.c +++ b/gio/tests/mimeapps.c @@ -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