execute_terminal_shell


Description:


[ Version ( since = "4.21.0" ) ]
public bool execute_terminal_shell (string command_line, string working_directory, string envp) throws Error

Executes command_line in the default terminal emulator.

If no preferred terminal emulator was chosen by the user so far and no sane fallback could be located, the user will be presented with the preferred application chooser dialog, which prompts to choose a default terminal emulator, and the command_line will be run afterwards using the new default.

Note that even if this method returns true there's no warranty that the command_line was run successfully, because of the way the helper framework is implemented. But you can be sure that if the execution fails at a later stage, the library will popup an error dialog to inform the user that the execution failed.

Parameters:

command_line

shell command line to execute.

working_directory

path to the directory in which to execute command_line or null to use the current working directory.

envp

child's environment, or null to inherit parent's.

Returns:

true on success, else false.


Namespace: Xfce
Package: libxfce4ui-2