original_docstring: 
      Executes an application with args and optionally spawns a new shell
      as specified in the app entry.
      Returns the pid of the new process.
      
docstring: Executes an application with args and optionally spawns a new shell
  as specified in the app entry.
  Returns the pid of the new process.
docstring_tokens: Executes an application with args and optionally spawns a new shell as specified in the app entry . Returns the pid of the new process .
code: def execute_app(executable: Path, is_console_app: bool, args: str) -> int:
      """
      Executes an application with args and optionally spawns a new shell
      as specified in the app entry.
      Returns the pid of the new process.
      """
      if executable.absolute().is_file():
          cmd = [str(executable)]
          if args:
              cmd += args.strip().split(" ")
          if platform.system() == "Windows":
              return execute_cmd(cmd, is_console_app)
          elif platform.system() == "Linux":
              if is_console_app:
                  # Sadly, there is no default way to do this, because of the miriad terminal emulators available
                  # Use the default distro emulator, with x-terminal-emulator
                  # (sudo update-alternatives --config x-terminal-emulator)
                  # This works only on debian distros.
                  cmd = ["x-terminal-emulator", "-e", str(executable)]
              if args:
                  cmd += args.strip().split(" ")
              proc = subprocess.Popen(cmd)
              return proc.pid
      Logger().warning(f"No executable {str(executable)} to start.")
      return 0
code_tokens: def execute_app ( executable : Path , is_console_app : bool , args : str ) -> int : if executable . absolute ( ) . is_file ( ) : cmd = [ str ( executable ) ] if args : cmd += args . strip ( ) . split ( " " ) if platform . system ( ) == "Windows" : return execute_cmd ( cmd , is_console_app ) elif platform . system ( ) == "Linux" : if is_console_app : cmd = [ "x-terminal-emulator" , "-e" , str ( executable ) ] if args : cmd += args . strip ( ) . split ( " " ) proc = subprocess . Popen ( cmd ) return proc . pid Logger ( ) . warning ( f"No executable {str(executable)} to start." ) return 0
short_docstring: Executes an application with args and optionally spawns a new shell
  as specified in the app entry.
short_docstring_tokens: Executes an application with args and optionally spawns a new shell as specified in the app entry .
comment: """
      Executes an application with args and optionally spawns a new shell
      as specified in the app entry.
      Returns the pid of the new process.
      """$SEP$# Sadly, there is no default way to do this, because of the miriad terminal emulators available
  $SEP$# Use the default distro emulator, with x-terminal-emulator
  $SEP$# (sudo update-alternatives --config x-terminal-emulator)
  $SEP$# This works only on debian distros.
  