MCPcopy Create free account
hub / github.com/DFHack/dfhack / notify

Function notify

package/launchdf.cpp:137–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135#else
136
137void 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
147bool wrap_launch(const char * (*launch_fn)()) {
148 const char * err = launch_fn();

Callers 2

wrap_launchFunction · 0.85
mainFunction · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected