示例#1
0
def launch_shutdown_gui():
    from gi.repository import GObject, Gtk

    from kano_updater.ui.available_window import UpdateNowShutdownWindow
    from kano_updater.ui.install_window import InstallWindow

    status = UpdaterStatus.get_instance()

    if status.is_scheduled:
        GObject.threads_init()
        win = InstallWindow() if status.is_urgent else UpdateNowShutdownWindow()
        win.show()
        Gtk.main()
示例#2
0
def launch_shutdown_gui():
    from gi.repository import GObject, Gtk

    from kano_updater.ui.available_window import UpdateNowShutdownWindow
    from kano_updater.ui.install_window import InstallWindow

    status = UpdaterStatus.get_instance()

    if status.is_scheduled:
        GObject.threads_init()
        win = InstallWindow() if status.is_urgent else UpdateNowShutdownWindow()
        win.show()
        Gtk.main()
示例#3
0
def launch_install_gui(confirm=True, splash_pid=None):
    from kano_updater.ui.available_window import UpdatesDownloadedWindow
    from kano_updater.ui.install_window import InstallWindow

    GObject.threads_init()

    win = UpdatesDownloadedWindow() if confirm else InstallWindow()
    win.show()

    if splash_pid:
        msg = "Terminating the splash screen (pid={})".format(splash_pid)
        logger.debug(msg)
        os.kill(splash_pid, signal.SIGKILL)

    Gtk.main()

    if relaunch_required_flag:
        r_exc = Relaunch()
        r_exc.pid = splash_pid
        raise r_exc
示例#4
0
    def _action(self):
        from kano_updater.ui.install_window import InstallWindow

        win = InstallWindow()
        win.show()