public static void Run()
{
#if WIN32
// There are two sets of environement variables we need to impact with our LANG.
// refer to : http://article.gmane.org/gmane.comp.gnu.mingw.user/8272
var lang_code = CultureInfo.CurrentUICulture.TwoLetterISOLanguageName;
string env = String.Concat("LANG=", lang_code);
Environment.SetEnvironmentVariable("LANG", lang_code);
_putenv(env);
#endif
Catalog.Init(Application.InternalName, System.IO.Path.Combine(
Hyena.Paths.InstalledApplicationDataRoot, "locale"));
if (!DBusConnection.ConnectTried)
{
DBusConnection.Connect();
}
ServiceManager.Run();
ServiceManager.SourceManager.AddSource(new MusicLibrarySource(), true);
ServiceManager.SourceManager.AddSource(new VideoLibrarySource(), false);
ServiceManager.SourceManager.LoadExtensionSources();
}