Skip to content

Commit

Permalink
Exit with '_exit' when zenity is missing
Browse files Browse the repository at this point in the history
Per comment from @falkTX on surge-synthesizer#1199 this will stop our missing-zenity-core
  • Loading branch information
baconpaul committed Sep 21, 2019
1 parent a3c5031 commit 2e57826
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/linux/UserInteractionsLinux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void promptError(const std::string &message, const std::string &title,
"--title", title.c_str(),
(char*)nullptr) < 0)
{
exit(0);
_exit(0);
}
}
std::cerr << "Surge Error\n"
Expand Down Expand Up @@ -91,7 +91,7 @@ MessageResult promptOKCancel(const std::string &message, const std::string &titl
"--text", message.c_str(),
"--title", title.c_str(),
(char*)nullptr);
exit(1);
_exit(1);
}

int wret;
Expand All @@ -115,7 +115,7 @@ void openURL(const std::string &url)
{
if (execlp("xdg-open", "xdg-open", url.c_str(), (char*)nullptr) < 0)
{
exit(0);
_exit(0);
}
}
}
Expand Down

0 comments on commit 2e57826

Please sign in to comment.