Modify args
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 8 Feb 2017 01:55:05 +0000 (10:55 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Wed, 8 Feb 2017 04:13:32 +0000 (20:13 -0800)
According to .Net Spec, the args[0] isn't the app path.
We should consider to parse the bundle from the args.

Change-Id: I5800f28313435add9871c3a524a2dc0ebe43901b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/Tizen.Applications.Common/Tizen.Applications/CoreApplication.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index eb93e27..92eaff1
@@ -93,7 +93,10 @@ namespace Tizen.Applications
             _backend.AddEventHandler<LocaleChangedEventArgs>(EventType.LocaleChanged, OnLocaleChanged);
             _backend.AddEventHandler<RegionFormatChangedEventArgs>(EventType.RegionFormatChanged, OnRegionFormatChanged);
 
-            _backend.Run(args);
+            string[] argsClone = new string[args.Length + 1];
+            argsClone[0] = string.Empty;
+            args.CopyTo(argsClone, 1);
+            _backend.Run(argsClone);
         }
 
         /// <summary>