| 135 | #else |
| 136 | |
| 137 | void notify(const char * msg) { |
| 138 | std::string command = "notify-send --app-name=DFHack \""; |
| 139 | command += msg; |
| 140 | command += "\""; |
| 141 | printf("%s\n", msg); |
| 142 | int result = system(command.c_str()); |
| 143 | // if this fails; it's ok |
| 144 | (void)result; |
| 145 | } |
| 146 | |
| 147 | bool wrap_launch(const char * (*launch_fn)()) { |
| 148 | const char * err = launch_fn(); |
no test coverage detected