Registering node-webkit app as a default app for certain file types

4 views
Skip to first unread message

thomas...@gmail.com

unread,
Nov 27, 2012, 4:44:39 PM11/27/12
to node-...@googlegroups.com
Is there an API or a way how a node-webkit app can register itself as a default app for opening certain file types?

Cheng Zhao

unread,
Nov 27, 2012, 7:20:30 PM11/27/12
to node-...@googlegroups.com
No, there is no such API because there is no uniform way to do it in
different platforms.

On Windows you need to modify the registry, on Linux you need to
provide a `.desktop` file and on Mac you need to modify the
`Info.plist` file.

On Wed, Nov 28, 2012 at 5:44 AM, <thomas...@gmail.com> wrote:
> Is there an API or a way how a node-webkit app can register itself as a
> default app for opening certain file types?



--
Cheng
Intel Open Source Technology Center

thomas...@gmail.com

unread,
Nov 27, 2012, 7:50:03 PM11/27/12
to node-...@googlegroups.com
And is, or will there be some feasible way how to achieve this? It doesn't have to be uniform, but at least it should exist.

Right the first app I'd want to create with node-webkit would require this functionality, so I'd say it's pretty essential :)

Cheng Zhao

unread,
Nov 27, 2012, 7:56:58 PM11/27/12
to node-...@googlegroups.com
We have a plan to provide an automatic packing tool, it would be easy
to achieve when it's done:
https://github.com/rogerwang/node-webkit/issues/99

thomas...@gmail.com

unread,
Nov 29, 2012, 10:20:29 AM11/29/12
to node-...@googlegroups.com
Also, launch on OS start up please :)
Reply all
Reply to author
Forward
0 new messages