mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Properly ignore return value of std::system
This commit is contained in:
@@ -861,7 +861,7 @@ namespace hex {
|
||||
errorMessageMacos(message.c_str());
|
||||
#elif defined(OS_LINUX)
|
||||
if (std::system(fmt::format(R"(zenity --error --text="{}")", message).c_str()) != 0) {
|
||||
std::system(fmt::format(R"(notify-send -i "net.werwolv.ImHex" "Error" "{}")", message).c_str());
|
||||
std::ignore = std::system(fmt::format(R"(notify-send -i "net.werwolv.ImHex" "Error" "{}")", message).c_str());
|
||||
}
|
||||
#elif defined(OS_WEB)
|
||||
EM_ASM({
|
||||
@@ -906,7 +906,7 @@ namespace hex {
|
||||
toastMessageMacos(title.c_str(), message.c_str());
|
||||
#elif defined(OS_LINUX)
|
||||
if (std::system(fmt::format(R"(notify-send -i "net.werwolv.ImHex" "{}" "{}")", title, message).c_str()) != 0) {
|
||||
std::system(fmt::format(R"(zenity --info --title="{}" --text="{}")", title, message).c_str());
|
||||
std::ignore = std::system(fmt::format(R"(zenity --info --title="{}" --text="{}")", title, message).c_str());
|
||||
}
|
||||
#elif defined(OS_WEB)
|
||||
EM_ASM({
|
||||
|
||||
Reference in New Issue
Block a user