Skip to main content

linux_answer

Function linux_answer 

Source
fn linux_answer(exit_code: Option<i32>, stderr: &str) -> Option<bool>
Expand description

What zenity or kdialog said, from its exit code and what it wrote to stderr. Both exit 0 for the first button (Quit) and 1 for the other one or a closed dialog (keep running). Anything else is a dialog that was never answered: None. So is an exit of 1 from a dialog that could not reach the display, which it says on stderr.