exec_sh_async#

ignis.utils.Utils.exec_sh_async(command: str, on_finished: Callable | None = None) gi.repository.Gio.Subprocess#

Execute a shell (bash) command asynchronously.

Parameters:
  • command (str) -- The command to execute.

  • on_finished (Callable, optional) -- A function to call when the process is finished. An instance of AsyncCompletedProcess will be passed to this function.

Returns:

Gio.Subprocess