aboutsummaryrefslogtreecommitdiff
path: root/src/status-items.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-07-02 06:29:45 -0500
committerTed Gould <ted@gould.cx>2011-07-02 06:29:45 -0500
commitd936a27b56706eb521f525970dedb63fe24c81bd (patch)
treef89acbd495d6980a634576ee13f621412fd7d011 /src/status-items.c
parent4aad2ce250a7b7033745cbea39f6752d9b2092f7 (diff)
downloadayatana-indicator-messages-d936a27b56706eb521f525970dedb63fe24c81bd.tar.gz
ayatana-indicator-messages-d936a27b56706eb521f525970dedb63fe24c81bd.tar.bz2
ayatana-indicator-messages-d936a27b56706eb521f525970dedb63fe24c81bd.zip
Insure we're only loading .so's
Diffstat (limited to 'src/status-items.c')
-rw-r--r--src/status-items.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/status-items.c b/src/status-items.c
index 3e27529..5e8a07c 100644
--- a/src/status-items.c
+++ b/src/status-items.c
@@ -107,6 +107,10 @@ provider_directory_parse (gpointer directory)
const gchar * name;
while ((name = g_dir_read_name(dir)) != NULL) {
+ if (!g_str_has_suffix(name, ".so")) {
+ continue;
+ }
+
gchar * fullname = g_build_filename(dirname, name, NULL);
g_idle_add(load_status_provider, fullname);
}