Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

app.argv not working with OSX Finder #310

Closed
rogerwang opened this Issue · 3 comments

3 participants

@rogerwang
Owner

when launch apps in OSX finder, argv returns the original argument (e.g. '-psn####'), rather than the meaningful one like /path/to/app

@rogerwang rogerwang was assigned
@ibdknox

This one is screwing things up for me. I guess the work around for now is to just throw out the args that have -psn in fron t of it.

@rogerwang rogerwang closed this in 42d5e83
@rogerwang rogerwang referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@rogerwang
Owner

fixed and will be in next release.

@trevorlinton trevorlinton referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@sandover

I'd like to suggest reopening. Docs say this: "if you open a file with your app in GUI (like file explorer in Windows, Finder in Mac and nautilus in Linux), the path of opened file will also be passed with App.argv." But actual behavior on Mac OS X 10.8.5, with node-webkit 0.8.4, is as follows:

Do this in the app:

console.log(gui.App);

and see this in the javascript console (empty argv and fullArgv):

App
   argv: Array[0]
   dataPath: "/Users/sandover/Library/Application Support/mvp-instaclient"
   fullArgv: Array[0]
   manifest: Object
   __proto__: App
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.