You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Any way to add nw parameters not meant for chrome executable? #191
I have a node-webkit app that requires a specific chrome extension. As a result, I must start it with nw --load-extension='path/to/extension'as mentioned in nw.js's documentation. Is there a way for me to add the --load-extension call to the generated script? It is important to note that this is an argument meant for node webkit, not for chromium, so I cannot put it in the chromium args parameter in the manifest.
Which extension are you hoping to load? I don't believe there is a way to do that yet, but you could accomplish what you're looking to do with a simple shortcut file as described here and here.
I don't know of any way to embed the arguments into the exe itself. Doing something like that is usually the job of the installer that you use. Personally, I use NSIS to create my installers, and it has options to install a shortcut on the desktop with arguments like --load-extension.
My end users will need the cisco web communicator in order for the application they interact with to take advantage of Cisco's Jabber SDK. Using a link installed by the installer may be an acceptable workaround. Do you regularly make mac installers as well? I assume that NSIS does not work in that environment. What do you use in that case?
For Mac, I use a packager called Packages. It's free and pretty darn good. I believe for Mac you can simply edit the Info.plist file in YourApp.app/Contents/Info.plist and add a section that specifies the command line arguments.
changed the title [-]Any way to add nw parameters not meant for chrome to executable?[/-][+]Any way to add `nw` parameters not meant for chrome executable?[/+]on Apr 13, 2017
Activity
jyapayne commentedon Apr 13, 2017
Which extension are you hoping to load? I don't believe there is a way to do that yet, but you could accomplish what you're looking to do with a simple shortcut file as described here and here.
I don't know of any way to embed the arguments into the exe itself. Doing something like that is usually the job of the installer that you use. Personally, I use NSIS to create my installers, and it has options to install a shortcut on the desktop with arguments like
--load-extension.codekiln commentedon Apr 13, 2017
My end users will need the cisco web communicator in order for the application they interact with to take advantage of Cisco's Jabber SDK. Using a link installed by the installer may be an acceptable workaround. Do you regularly make mac installers as well? I assume that NSIS does not work in that environment. What do you use in that case?
jyapayne commentedon Apr 13, 2017
For Mac, I use a packager called Packages. It's free and pretty darn good. I believe for Mac you can simply edit the Info.plist file in
YourApp.app/Contents/Info.plistand add a section that specifies the command line arguments.Something like:
Adding command line arguments to Web2Exe may be possible. I'll look into it and see if I can make it an option :)
[-]Any way to add nw parameters not meant for chrome to executable?[/-][+]Any way to add `nw` parameters not meant for chrome executable?[/+]codekiln commentedon Apr 13, 2017
Thanks for the tips @jyapayne!