~simonschneegans/do-plugins/grooveshark

« back to all changes in this revision

Viewing changes to OpenSearch/src/FirefoxOpenSearchDirectoryProvider.cs

  • Committer: Alex Launi
  • Date: 2010-01-25 02:16:56 UTC
  • mfrom: (674.2.1 do-plugins)
  • Revision ID: alex.launi@gmail.com-20100125021656-cfjiidol06778bo0
merge fix for opensearch plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
                                Log<FirefoxOpenSearchDirectoryProvider>.Debug ("Library plugin search path: {0}", firefoxLibPath);
58
58
                                openSearchPluginDirectories.Add (firefoxLibPath);       
59
59
                        }
 
60
                        
 
61
                        string firefoxAddonsPath = GetAddonsSearchPluginsPath ();
 
62
                        if (firefoxAddonsPath != null) {
 
63
                                Log<FirefoxOpenSearchDirectoryProvider>.Debug ("Addons plugin search path: {0}", firefoxAddonsPath);
 
64
                                openSearchPluginDirectories.Add (firefoxAddonsPath);    
 
65
                        }
60
66
                }
61
67
                
62
68
                /// <value>
155
161
                                
156
162
                        return null;
157
163
                }
 
164
                
 
165
                /// <summary>
 
166
                /// Retrieves the firefox-addons search plugin directory, which
 
167
                /// is where the default OpenSearch plugins are installed.
 
168
                /// </summary>
 
169
                /// <returns>
 
170
                /// The full path to the firefox-addons searchplugins directory.
 
171
                /// </returns>
 
172
                private string GetAddonsSearchPluginsPath ()
 
173
                {
 
174
                        return "/usr/lib/firefox-addons/searchplugins";
 
175
                }
158
176
        }
159
177
}