[ekiga] Made the plugin loader dumber
- From: Julien Puydt <jpuydt src gnome org>
- To: svn-commits-list gnome org
- Subject: [ekiga] Made the plugin loader dumber
- Date: Thu, 18 Jun 2009 15:53:21 -0400 (EDT)
commit 19b9d919a69ca56f8c38b4d32979c456d2f06d95
Author: Julien Puydt <jpuydt gnome org>
Date: Thu Jun 18 21:51:42 2009 +0200
Made the plugin loader dumber
It seems g_file_test doesn't work perfectly : let's just
try to open anything which doesn't end in '.so' as a
directory...
lib/engine/plugin/plugin-core.cpp | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/lib/engine/plugin/plugin-core.cpp b/lib/engine/plugin/plugin-core.cpp
index 5dfd2a6..b30f6e4 100644
--- a/lib/engine/plugin/plugin-core.cpp
+++ b/lib/engine/plugin/plugin-core.cpp
@@ -126,14 +126,13 @@ plugin_parse_directory (Ekiga::KickStart& kickstart,
* purpose of this code. If I'm wrong, report as a bug.
* (Snark, 20090618)
*/
- if (g_file_test (name, G_FILE_TEST_IS_DIR)) {
+ std::cout << "considering " << filename << std::endl;
+ if (g_str_has_suffix (filename, G_MODULE_SUFFIX))
+ plugin_parse_file (kickstart, filename);
+ else
plugin_parse_directory (kickstart, filename);
- } else {
- if (g_str_has_suffix (filename, G_MODULE_SUFFIX))
- plugin_parse_file (kickstart, filename);
- }
g_free (filename);
name = g_dir_read_name (directory);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]