diff --git a/autoaccept.cpp b/autoaccept.cpp index 2e7e44a..60dcb10 100644 --- a/autoaccept.cpp +++ b/autoaccept.cpp @@ -15,7 +15,7 @@ #include "curling.cpp" int main() { - system("pkexec sh -c 'sysctl -w abi.vsyscall32=0' > /dev/null"); + (argc != 1 && static_cast(argv[1]) == "--nopkexec") ? : system("pkexec sh -c 'sysctl -w abi.vsyscall32=0' > /dev/null"); std::cout << "STARTED LEAGUEAUTOACCEPT" << std::endl; // std::cout << std::unitbuf; while (true) {