tests: Fix desktop-app-info test634355560551bf56d8394899bd6f9c2321fd0142
commit634355560551bf56d8394899bd6f9c2321fd0142
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 24 Apr 2018 13:21:06 +0000 (24 15:21 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 24 Apr 2018 16:36:05 +0000 (24 18:36 +0200)
tree112a149ec19d7b6dd7e8bc1fbdc5667d6869b159
parent1e2579da2c115f09ab36015c6a02fb3e767e8d68
tests: Fix desktop-app-info test

g_desktop_app_info_load_from_keyfile() refuses to load .desktop files
where the executable doesn't exist. Therefore whether or not the .desktop
file added in commit 148995544 is actually considered during tests depends
on /usr/bin/flatpak being installed. This isn't a safe assumption to make,
so use /bin/sh to test filtering of "prefix" commands.

https://bugzilla.gnome.org/show_bug.cgi?id=795488
gio/tests/desktop-app-info.c
gio/tests/desktop-files/usr/applications/org.gnome.clocks.desktop