Remove previous change

This commit is contained in:
computezrmle 2022-08-04 21:39:45 +02:00 committed by GitHub
parent 23c9affb4a
commit dc5a7f4928
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -1712,10 +1712,10 @@ void CMainDocument::KillGraphicsApp(int pid) {
if (g_use_sandbox) {
snprintf(thePIDbuf, sizeof(thePIDbuf), "%d", pid);
argv[0] = (char *)"switcher";
argv[1] = (char *)"/bin/kill";
argv[2] = (char *)"kill";
argv[3] = (char *)"-KILL";
argv[0] = "switcher";
argv[1] = "/bin/kill";
argv[2] = "kill";
argv[3] = "-KILL";
argv[4] = thePIDbuf;
argv[5] = 0;
@ -1767,7 +1767,7 @@ int CMainDocument::WorkShowGraphics(RESULT* rp) {
#ifndef __WXMSW__
char* argv[4];
argv[0] = (char *)"switcher";
argv[0] = "switcher";
// For unknown reasons on Macs, the graphics application
// exits with "RegisterProcess failed (error = -50)" unless
// we pass its full path twice in the argument list to execv.