diff --git a/common/gvfsmountinfo.c b/common/gvfsmountinfo.c
index 6522d19..6810463 100644
--- a/common/gvfsmountinfo.c
+++ b/common/gvfsmountinfo.c
@@ -101,7 +101,7 @@ on_autorun_loaded (GObject      *source_object,
       /* [^,] is because sometimes the icon= line
        * has a comma at the end
        **/
-      icon_regex = g_regex_new ("icon=([^,\\r\\n]+)",
+      icon_regex = g_regex_new ("icon\\s*=\\s*([^,\\r\\n]+)",
                                 G_REGEX_CASELESS, 0, NULL);
       g_regex_match (icon_regex, content, 0,
                      &match_info);
