Re: [pulseaudio-tickets] [PulseAudio] #917: Support for multiple command line arguments with #!/usr/bin/pulseaudio

2011-03-09 Thread PulseAudio
#917: Support for multiple command line arguments with #!/usr/bin/pulseaudio
--+-
  Reporter:  roothorick   |   Owner:  lennart
  Type:  enhancement  |  Status:  new
 Milestone:   |   Component:  daemon 
Resolution:   |Keywords: 
--+-

Comment(by coling):

 Would a completely separate solution be to allow e.g. pactl to pass a
 script file name across to a (running) PA process for execution?

 Would this approach make things easier? (it would also simplify the start-
 pulseaudio-x11 process as we could scriptify the individual pactl commands
 in there and make it easier for people to configure.

 Might not be exactly what you want here tho'.

-- 
Ticket URL: http://pulseaudio.org/ticket/917#comment:4
PulseAudio http://pulseaudio.org/
The PulseAudio Sound Server
___
pulseaudio-tickets mailing list
pulseaudio-tickets@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets


Re: [pulseaudio-tickets] [PulseAudio] #917: Support for multiple command line arguments with #!/usr/bin/pulseaudio (was: command-line arguments are not always correctly parsed)

2011-03-08 Thread PulseAudio
#917: Support for multiple command line arguments with #!/usr/bin/pulseaudio
--+-
  Reporter:  roothorick   |   Owner:  lennart
  Type:  enhancement  |  Status:  new
 Milestone:   |   Component:  daemon 
Resolution:   |Keywords: 
--+-
Changes (by tanuk):

  * type:  defect = enhancement


Comment:

 I don't think this is a bug in Pulseaudio. It's a limitation of Linux that
 the shebang line can't have more than one argument. Since the limitation
 could be worked around by parsing the first argument as if it was a full
 command line (minus the script name), I'm not closing this ticket as
 invalid, but I'll set the type to enhancement.

 Do you know how common it is to work around the kernel limitation? From
 this[1] thread I learned that at least awk doesn't support what you think
 Pulseaudio should support, but perl does.

 [1] http://lkml.org/lkml/2004/2/16/74

-- 
Ticket URL: http://pulseaudio.org/ticket/917#comment:2
PulseAudio http://pulseaudio.org/
The PulseAudio Sound Server
___
pulseaudio-tickets mailing list
pulseaudio-tickets@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets


Re: [pulseaudio-tickets] [PulseAudio] #917: Support for multiple command line arguments with #!/usr/bin/pulseaudio

2011-03-08 Thread PulseAudio
#917: Support for multiple command line arguments with #!/usr/bin/pulseaudio
--+-
  Reporter:  roothorick   |   Owner:  lennart
  Type:  enhancement  |  Status:  new
 Milestone:   |   Component:  daemon 
Resolution:   |Keywords: 
--+-

Comment(by roothorick):

 So I should do

 {{{
 #!/bin/sh
 pulseaudio -nD --exit-idle-status=-1 -F -  EOF
 
 EOF
 }}}

 or some variant thereof? Would that even work?

 In any case, there's no standard for whether the arguments in the shebang
 should be split or not, and the behavior varies across UNIX variants (most
 notably: FreeBSD splits, Linux does not). Shouldn't an application strive
 to handle all possibilities when the exact state of incoming data is
 partially undefined?

-- 
Ticket URL: http://pulseaudio.org/ticket/917#comment:3
PulseAudio http://pulseaudio.org/
The PulseAudio Sound Server
___
pulseaudio-tickets mailing list
pulseaudio-tickets@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets