From 9031f167c556cfb8dfb421d8ce8d5c820d1824ec Mon Sep 17 00:00:00 2001 From: atraczyk <andreastraczyk@gmail.com> Date: Mon, 23 Oct 2017 16:13:20 -0400 Subject: [PATCH] fix: don't run system commands on iOS Change-Id: I12eabe030e084a274e4774ff1314d129323cf8bd --- src/hooks/urlhook.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/hooks/urlhook.cpp b/src/hooks/urlhook.cpp index 5fe21401cc..1cd18fb503 100644 --- a/src/hooks/urlhook.cpp +++ b/src/hooks/urlhook.cpp @@ -28,10 +28,11 @@ int UrlHook::runAction(const std::string &command, const std::string &args) //FIXME : use fork and execve, so no need to escape shell arguments const std::string cmd = command + (args.empty() ? "" : " ") + "\"" + args + "\" &"; -#ifndef RING_UWP - return system(cmd.c_str()); -#else - return 0; + +#if defined(RING_UWP) || defined(TARGET_OS_IOS) + return 0; +#else + return system(cmd.c_str()); #endif } -- GitLab