-
Notifications
You must be signed in to change notification settings - Fork 6
Add the ability to run firefox from .app on OSX #5
Comments
@jgraham After talking to @davehunt, there's some confusion as to where this patch belongs and how to implement it. I was hoping you could weigh in. :) Here's one suggestion: Another one is to extend the firefox_default_path() or create a similar, something like firefox_custom_path (which takes the aformentioned .app). |
See https://github.com/mozilla/mozbase-deprecated/pull/9/files how we got this implemented for the Python implementation of mozrunner. But well, meanwhile it got removed again, because it added additional complexity. |
@whimboo Thanks for that. So... I shouldn't add it to the mozrunner then? |
I will happily review a patch; if it's too complex we can decide then. It should be added to |
@jgraham Thanks, I'm happy to give it a shot. I still have some left of my sanity. So that means I have to change Is that a correct assessment? |
So if this gets added to the |
@whimboo Well, my approach would be to assume So you send in for instance |
Sorry, I think Otherwise, adding something to mozrunner to take a path and return a binary path (which on OSX might check if it's an app budle and locate the binary inside that, and on other platforms might be a noop) sounds reasonable. |
Keep in mind that this will only work for Firefox but will file for other type of applications in the future. Using the plist might be ideal here to retrieve the real binary. As @jgraham pointed out to me via IRC there are two possible crates available: https://crates.io/search?q=plist |
Instead of having to provide the full path, ie
/Applications/Firefox.app/Contents/MacOS/firefox-bin
, you should have the option to just do/Applications/Firefox.app/
(or any other path to a Firefox.app).I have no exp. with rust and I have no idea how long it will take for me to provide a patch. But I guess... um... challenge accepted? heh
The text was updated successfully, but these errors were encountered: