diff options
author | Ted Gould <ted@gould.cx> | 2011-07-02 06:29:45 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-07-02 06:29:45 -0500 |
commit | d936a27b56706eb521f525970dedb63fe24c81bd (patch) | |
tree | f89acbd495d6980a634576ee13f621412fd7d011 /src/status-items.c | |
parent | 4aad2ce250a7b7033745cbea39f6752d9b2092f7 (diff) | |
download | ayatana-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.c | 4 |
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); } |