Closed Bug 857606 Opened 13 years ago Closed 8 years ago

Profile argument is ignored when using mozrunner to launch B2G desktop client

Categories

(Testing :: Mozbase, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: davehunt, Unassigned)

Details

(Whiteboard: [mozbase])

It appears the default profile is being used when specifying a custom profile and the B2G.app or b2g path: $ mozrunner --binary=/Users/dhunt/Desktop/mozilla-b2g18/B2G.app --profile=/Users/dhunt/Desktop/mozilla-b2g18/B2G.app/Contents/MacOS/gaia/profile2 Starting: /Users/dhunt/Desktop/mozilla-b2g18/B2G.app/Contents/MacOS/b2g -profile /Users/dhunt/Desktop/mozilla-b2g18/B2G.app/Contents/MacOS/gaia/profile2 Starting b2g-bin Running: /Users/dhunt/Desktop/mozilla-b2g18/B2G.app/Contents/MacOS/b2g-bin -profile /Users/dhunt/Desktop/mozilla-b2g18/B2G.app/Contents/MacOS/gaia/profile Note that the profile2 was replaced with profile. This does however work if specifying the b2g-bin path directly: $ mozrunner --binary=/Users/dhunt/Desktop/mozilla-b2g18/B2G.app/Contents/MacOS/b2g-bin --profile=/Users/dhunt/Desktop/mozilla-b2g18/B2G.app/Contents/MacOS/gaia/profile2 Starting: /Users/dhunt/Desktop/mozilla-b2g18/B2G.app/Contents/MacOS/b2g-bin -profile /Users/dhunt/Desktop/mozilla-b2g18/B2G.app/Contents/MacOS/gaia/profile2
Blocks: 857622
not really sure if I understand this; Bueller?
It may end up being a B2G desktop client issue, but I want to launch the application with a specific profile. At the moment the only way I can do that is by specifying the binary as the full path to b2g-bin. If I specify the B2G.app or b2g path then the profile argument is being disregarded. I hope that makes more sense. :)
This is a limitation of the B2G desktop build. The 'b2g' (or B2G.app) binary is hardcoded (by the build itself) to launch b2g-bin with the bundled profile. If you want to specify your own profile, the only way to do this is to directly launch b2g-bin instead. B2G desktop builds without a bundled profile do not have a b2g-bin binary, and in those, launching the b2g binary with the -profile argument works as expected. This isn't a mozrunner bug, but, we could add a B2GDesktopRunner subclass in mozrunner that would automatically handle this.
Sounds like it would be a good enhancement then, but this isn't blocking as we can just specify the full path to the b2g-bin when a bundled profile is included.
Whiteboard: [mozbase]
No longer blocking bug 857622 as there's a suitable workaround.
No longer blocks: 857622
Mass closing bugs with no activity in 2+ years. If this bug is important to you, please re-open.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.