From 8034c354272e49dfc83039e8f68502f1a1223207 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 29 Jun 2012 11:54:57 +0200 Subject: [PATCH] backend-store: output a debug message if mime type of potential backends looks weird Will make my life much easier next time I'm wondering why nothing is working. https://bugzilla.gnome.org/show_bug.cgi?id=679116 --- folks/backend-store.vala | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/folks/backend-store.vala b/folks/backend-store.vala index 0f08de7..ad290fd 100644 --- a/folks/backend-store.vala +++ b/folks/backend-store.vala @@ -635,6 +635,13 @@ public class Folks.BackendStore : Object { _("The content type of '%s' could not be determined. Have you installed shared-mime-info?"), file.get_path ()); } + /* We should have only .la .so and sub-directories */ + else if (mime != "application/x-sharedlib" && + mime != "application/x-shared-library-la" && + mime != "inode/directory") + { + warning ("The content type of '%s' appears to be '%s' which looks suspicious. Have you installed shared-mime-info?", file.get_path (), mime); + } } debug ("Finished searching for modules in folder '%s'", -- 2.7.4