[folks] backend-store: output a debug message if mime type of potential backends looks weird



commit 8034c354272e49dfc83039e8f68502f1a1223207
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Jun 29 11:54:57 2012 +0200

    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 files changed, 7 insertions(+), 0 deletions(-)
---
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'",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]