| 629 | } |
| 630 | |
| 631 | void ExecWithInfo(const fextl::string& Text) { |
| 632 | fextl::string TextArg = "--text=" + Text; |
| 633 | const char* Args[] = { |
| 634 | "zenity", |
| 635 | "--info", |
| 636 | TextArg.c_str(), |
| 637 | nullptr, |
| 638 | }; |
| 639 | |
| 640 | Exec::ExecAndWaitForResponse(Args[0], const_cast<char* const*>(Args)); |
| 641 | } |
| 642 | |
| 643 | bool AskForConfirmation(const fextl::string& Question) { |
| 644 | return ArgOptions::AssumeYes || ExecWithQuestion(Question); |
no test coverage detected