[rygel/rygel-0-16] core: Skip modules in hidden directories
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-16] core: Skip modules in hidden directories
- Date: Fri, 19 Oct 2012 15:20:01 +0000 (UTC)
commit 0f93419fab4128acae9043bfa77e1dffb1a51efa
Author: Jens Georg <jensg openismus com>
Date: Fri Oct 19 17:14:53 2012 +0200
core: Skip modules in hidden directories
https://bugzilla.gnome.org/show_bug.cgi?id=686018
src/librygel-core/rygel-plugin-loader.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/librygel-core/rygel-plugin-loader.vala b/src/librygel-core/rygel-plugin-loader.vala
index a5569dc..9f7f41c 100644
--- a/src/librygel-core/rygel-plugin-loader.vala
+++ b/src/librygel-core/rygel-plugin-loader.vala
@@ -100,6 +100,7 @@ public class Rygel.PluginLoader : Object {
string attributes = FileAttribute.STANDARD_NAME + "," +
FileAttribute.STANDARD_TYPE + "," +
+ FileAttribute.STANDARD_IS_HIDDEN + "," +
FileAttribute.STANDARD_CONTENT_TYPE;
GLib.List<FileInfo> infos;
@@ -129,7 +130,9 @@ public class Rygel.PluginLoader : Object {
string content_type = info.get_content_type ();
string mime = ContentType.get_mime_type (content_type);
- if (file_type == FileType.DIRECTORY) {
+ if (file_type == FileType.DIRECTORY &&
+ (info.get_name () == ".libs" ||
+ !info.get_is_hidden ())) {
// Recurse into directories
this.load_modules_from_dir.begin (file);
} else if (mime == "application/x-sharedlib") {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]