[haiku-bugs] Re: [Haiku] #11893: When a shell script is the handling application for a mimetype, registrar does not propagate arguments to it

  • From: "hamish" <trac@xxxxxxxxxxxx>
  • Date: Sat, 25 Apr 2015 19:35:36 -0000

#11893: When a shell script is the handling application for a mimetype,
registrar
does not propagate arguments to it
------------------------------------+----------------------------
Reporter: waddlesplash | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: Applications/Tracker | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
------------------------------------+----------------------------

Comment (by hamish):

After some battling with the unit tests it seems that the argv is not
expected to contain the file path if no additional args are passed. See
http://cgit.haiku-
os.org/haiku/tree/src/tests/kits/app/broster/LaunchTesterHelper.cpp#n426.

I'm curious if this is indeed the behaviour on BeOS for a `B_ARGV_ONLY`
app, because it seems that a `B_ARGV_ONLY` app would have no other way to
receive the target file in that case.

A few of the tests were also broken because the
`BMessage::ReturnAddress()` of the messages sent to the launch context
would refer to the launch context itself. On the test app side, it makes a
copy of the `RefsReceived` message, and this also ends up copying the
reply-to address of the message. If the tests pass under BeOS, that would
suggest this behaviour is also wrong.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11893#comment:5>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: