[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, 21 Mar 2015 21:45:19 -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):

 Looking at the `BRoster` code this seems intentional (and also applies to
 regular non-BApplication executables, not just scripts). If no additional
 arguments (argc, argv) are passed to `BRoster::Launch()` then it won't
 include the target file path in the argument vector.

 It will send the file ref later in a message. It will try to send the
 message even if the app has the `B_ARGV_ONLY` flag — which seems to go
 against the definition given in the Be Book. Is this the BeOS behaviour,
 or a mistake?

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

Other related posts: