How to set webkit startup option

1 view
Skip to first unread message

abeq

unread,
Nov 1, 2012, 6:33:02 AM11/1/12
to node-...@googlegroups.com
I want to run nw with '--allow-file-access-from-files' for File API coding.
Please let me know how to set it.

Zhao Cheng

unread,
Nov 1, 2012, 8:28:40 PM11/1/12
to node-...@googlegroups.com
'--allow-file-access-from-files' has already been opened by default in
nw, there're some other webkit options can be set in package.json:
https://github.com/rogerwang/node-webkit/wiki/Manifest-format

On Thu, Nov 1, 2012 at 6:33 PM, abeq <abeq...@gmail.com> wrote:
> I want to run nw with '--allow-file-access-from-files' for File API coding.
> Please let me know how to set it.
>



--
Cheng
Intel Open Source Technology Center

abeq

unread,
Nov 1, 2012, 9:17:38 PM11/1/12
to node-...@googlegroups.com
Hi, thank you for your answer.


> '--allow-file-access-from-files' has already been opened by default in nw,

I have tried to invoke 'window.requestFileSystem(type, size, successCallback, opt_errorCallback)' from nw's app, 
but nw always returns error code '2' (SECURITY_ERR).
It is about nw 3.01 for Windows.

Please confirm it.

Regards

abeq

2012年11月2日金曜日 8時28分41秒 UTC+8 Zhao Cheng:

abeq

unread,
Nov 1, 2012, 9:49:06 PM11/1/12
to node-...@googlegroups.com
I withdraw this problem. 
I have tried to access to native directory beyond application root.

I apologize for my misunderstanding. 

regards,

abeq

2012年11月2日金曜日 9時17分38秒 UTC+8 abeq:

Roger WANG

unread,
Nov 15, 2012, 9:35:26 AM11/15/12
to node-...@googlegroups.com
abeq <abeq...@gmail.com> writes:

> I want to run nw with '--allow-file-access-from-files' for File API coding.
> Please let me know how to set it.

We support a long list of command line switches which are provided by
content api. Please see the link in:

https://github.com/rogerwang/node-webkit/wiki/Command-line-switches

--
Roger WANG Intel Open Source Technology Center
Reply all
Reply to author
Forward
0 new messages