def _install_app(self, report_install=True): installer = AppInstaller(self._app['id'], self._apps, None, self._window) installer.set_report_install(report_install) if not installer.install(): return # We need to reload the application information, readd it to # the desktop and send an update to the parent object. new_app = load_from_app_file(installer.get_loc()) self._app['origin'] = new_app['origin'] remove_from_desktop(self._app) self._apps.update_app(new_app) add_to_desktop(new_app)
def _install_apps(self): pw = None for app in self._install: inst = AppInstaller(app, self._apps, pw, self) inst.set_check_if_installed(True) inst.set_icon_only(self._icon_only) inst.install() pw = inst.get_sudo_pw() self.set_last_page(0) refresh_package_list() self.refresh()
def _install_app(self, report_install=True): installer = AppInstaller(self._app['id'], self._apps, None, self._window) installer.set_report_install(report_install) if not installer.install(): return # We need to reload the application information, readd it to # the desktop and send an update to the parent object. new_app = load_from_app_file(installer.get_loc()) self._app['origin'] = new_app['origin'] remove_from_desktop(self._app) self._apps.update_app(new_app) if new_app.get('desktop'): add_to_desktop(new_app)