diff options
author | Inhwan Lee <ideal.lee@samsung.com> | 2017-02-20 15:40:38 +0900 |
---|---|---|
committer | Inhwan Lee <ideal.lee@samsung.com> | 2017-02-21 11:23:04 +0900 |
commit | fb859d55c39b6b9f84e92bed07f61550ea47bc0e (patch) | |
tree | fd6da2e6154a90caabcbf648a52f481e62d2d504 | |
parent | b7bc020a38a1e55ae5d654bc33b1353305168f91 (diff) | |
download | launcher-fb859d55c39b6b9f84e92bed07f61550ea47bc0e.tar.gz launcher-fb859d55c39b6b9f84e92bed07f61550ea47bc0e.tar.bz2 launcher-fb859d55c39b6b9f84e92bed07f61550ea47bc0e.zip |
Pass the first argument that name of exe filesubmit/tizen_unified/20170308.100407submit/tizen/20170221.023041accepted/tizen/tv/20170222.093853accepted/tizen/mobile/20170222.093831accepted/tizen/ivi/20170222.093913accepted/tizen/common/20170221.135116
in .NET spec, we have to skip file name in the fist argument
ref : https://msdn.microsoft.com/en-us/library/aa288457(v=vs.71).aspx
Change-Id: If6de1ca6721445ade894c529cb9915db7aaf6084
-rw-r--r-- | NativeLauncher/launcher/main.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/NativeLauncher/launcher/main.cc b/NativeLauncher/launcher/main.cc index f56432a..5c1ba49 100644 --- a/NativeLauncher/launcher/main.cc +++ b/NativeLauncher/launcher/main.cc @@ -177,7 +177,10 @@ int main(int argc, char *argv[]) _DBG("pkg : %s", info.pkg.c_str()); _DBG("type : %s", info.type.c_str()); - if (runtime->Launch(info.root.c_str(), info.path.c_str(), argc, argv)) + // The launchpad pass the name of exe file to the first argument. + // For the C# spec, we have to skip this first argument. + + if (runtime->Launch(info.root.c_str(), info.path.c_str(), argc-1, argv+1)) { _ERR("Failed to launch"); } |