Gio.Subprocess.prototype.get_if_exited
function get_if_exited(): Boolean { // Gjs wrapper for g_subprocess_get_if_exited() }
Check if the given subprocess exited normally (ie: by way of exit() or return from main()).
This is equivalent to the system WIFEXITED macro.
It is an error to call this function before Gio.Subprocess.prototype.wait has returned.
Since 2.40
- Returns
true if the case of a normal exit