Beispiel #1
0
 def post_install(self):
     """Create the Atom Code launcher"""
     # Add apm to PATH
     add_exec_link(os.path.join(self.install_path, "resources", "app", "apm", "bin", "apm"),
                   os.path.join(self.default_binary_link_path, 'apm'))
     create_launcher(self.desktop_filename, get_application_desktop_file(name=_("Atom"),
                     icon_path=os.path.join(self.install_path, "atom.png"),
                     try_exec=self.exec_path,
                     exec=self.exec_link_name,
                     comment=_("The hackable text editor"),
                     categories="Development;IDE;"))
Beispiel #2
0
 def post_install(self):
     """Create the Atom Code launcher"""
     # Add apm to PATH
     add_exec_link(os.path.join(self.install_path, "resources", "app", "apm", "bin", "apm"),
                   os.path.join(self.default_binary_link_path, 'apm'))
     create_launcher(self.desktop_filename, get_application_desktop_file(name=_("Atom"),
                     icon_path=os.path.join(self.install_path, "atom.png"),
                     try_exec=self.exec_path,
                     exec=self.exec_link_name,
                     comment=_("The hackable text editor"),
                     categories="Development;IDE;"))
Beispiel #3
0
    def decompress_and_install_done(self, result):
        self._install_done = True
        error_detected = False
        for fd in result:
            if result[fd].error:
                logger.error(result[fd].error)
                error_detected = True
            fd.close()
        if error_detected:
            UI.return_main_screen(status_code=1)

        self.post_install()
        if self.exec_link_name:
            add_exec_link(self.exec_path, self.exec_link_name)
        # Mark as installation done in configuration
        self.mark_in_config()

        UI.delayed_display(DisplayMessage("Installation done"))
        UI.return_main_screen()
Beispiel #4
0
    def decompress_and_install_done(self, result):
        self._install_done = True
        error_detected = False
        for fd in result:
            if result[fd].error:
                logger.error(result[fd].error)
                error_detected = True
            fd.close()
        if error_detected:
            UI.return_main_screen(status_code=1)

        self.post_install()
        if self.exec_link_name:
            add_exec_link(self.exec_path, self.exec_link_name)
        # Mark as installation done in configuration
        self.mark_in_config()

        UI.delayed_display(DisplayMessage("Installation done"))
        UI.return_main_screen()