public static void Startup(StartupInvocationHandler startup)
        {
            bool disable_clean_room = false;

            foreach (string arg in Environment.GetCommandLineArgs())
            {
                if (arg == "--disable-clean-room")
                {
                    disable_clean_room = true;
                    break;
                }
            }

            if (disable_clean_room)
            {
                startup();
                return;
            }

            try {
                startup();
            } catch (Exception e) {
                Console.WriteLine(e.Message);
                Console.WriteLine(e);

                Gtk.Application.Init();
                Hyena.Gui.Dialogs.ExceptionDialog dialog = new Hyena.Gui.Dialogs.ExceptionDialog(e);
                dialog.Run();
                dialog.Destroy();
                System.Environment.Exit(1);
            }
        }
Esempio n. 2
0
        public static void Startup(StartupInvocationHandler startup)
        {
            bool disable_clean_room = false;

            foreach(string arg in Environment.GetCommandLineArgs ()) {
                if(arg == "--disable-clean-room") {
                    disable_clean_room = true;
                    break;
                }
            }

            if(disable_clean_room) {
                startup();
                return;
            }

            try {
                startup();
            } catch(Exception e) {
                Console.WriteLine(e.Message);
                Console.WriteLine(e);

                Gtk.Application.Init();
                Hyena.Gui.Dialogs.ExceptionDialog dialog = new Hyena.Gui.Dialogs.ExceptionDialog(e);
                dialog.Run();
                dialog.Destroy();
                System.Environment.Exit(1);
            }
        }