mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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
This commit is contained in:
parent
84e9829fee
commit
41761a134d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user