summaryrefslogtreecommitdiff
path: root/libappstream-builder/plugins/asb-plugin-desktop.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-01-22 21:27:52 +0000
committerRichard Hughes <richard@hughsie.com>2015-01-22 21:59:01 +0000
commit8b0ec4d422e84876923c3473ea680587c8a7ebec (patch)
tree8e40d89a71aaa10e9cef0a9215fcaf49eda25319 /libappstream-builder/plugins/asb-plugin-desktop.c
parent775f59405fd9f5269ff7d4e3d0a78133f7af5de2 (diff)
downloadappstream-glib-8b0ec4d422e84876923c3473ea680587c8a7ebec.tar.gz
trivial: Add asb_plugin_match_glob()
This allows us to modify the prefix in the future for bundles.
Diffstat (limited to 'libappstream-builder/plugins/asb-plugin-desktop.c')
-rw-r--r--libappstream-builder/plugins/asb-plugin-desktop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-desktop.c b/libappstream-builder/plugins/asb-plugin-desktop.c
index bde3ce0..ef82929 100644
--- a/libappstream-builder/plugins/asb-plugin-desktop.c
+++ b/libappstream-builder/plugins/asb-plugin-desktop.c
@@ -58,9 +58,9 @@ asb_plugin_add_globs (AsbPlugin *plugin, GPtrArray *globs)
static gboolean
_asb_plugin_check_filename (const gchar *filename)
{
- if (fnmatch ("/usr/share/applications/*.desktop", filename, 0) == 0)
+ if (asb_plugin_match_glob ("/usr/share/applications/*.desktop", filename))
return TRUE;
- if (fnmatch ("/usr/share/applications/kde4/*.desktop", filename, 0) == 0)
+ if (asb_plugin_match_glob ("/usr/share/applications/kde4/*.desktop", filename))
return TRUE;
return FALSE;
}