Connect() private static method

private static Connect ( string serviceName, bool init ) : RequestNameReply
serviceName string
init bool
return RequestNameReply
Beispiel #1
0
        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();
        }
Beispiel #2
0
        public static void Run()
        {
            Banshee.Base.PlatformHacks.TrapMonoJitSegv();

            Catalog.Init(Application.InternalName, System.IO.Path.Combine(
                             Banshee.Base.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();

            Banshee.Base.PlatformHacks.RestoreMonoJitSegv();
        }