| 615 | |
| 616 | namespace Zenity { |
| 617 | bool ExecWithQuestion(const fextl::string& Question) { |
| 618 | fextl::string TextArg = "--text=" + Question; |
| 619 | const char* Args[] = { |
| 620 | "zenity", |
| 621 | "--question", |
| 622 | TextArg.c_str(), |
| 623 | nullptr, |
| 624 | }; |
| 625 | |
| 626 | int32_t Result = Exec::ExecAndWaitForResponse(Args[0], const_cast<char* const*>(Args)); |
| 627 | // 0 on Yes, 1 on No |
| 628 | return Result == 0; |
| 629 | } |
| 630 | |
| 631 | void ExecWithInfo(const fextl::string& Text) { |
| 632 | fextl::string TextArg = "--text=" + Text; |
no test coverage detected