Skip to content

Mopidy: Suggestion: Quote options[] to support extended parameters #41

@agrimpelhuber

Description

@agrimpelhuber

Hi,

tried to reroute the local audio output to a different sound card on the raspberry pi.
In principle, the gstreamer configuration for mopidy.conf is quite clear:

[audio]
output = alsasink device=hw:2,0

Or, for the command line of mopidy:

mopidy -o audio/output='alsasink device=hw:2,0'

Unfortunately, run.sh does not quote the "value" of "options" parameters, so a configuration like

    {
      "name": "audio/output",
      "value": "alsasink  device=hw:2,0"
    },

ends up as an invalid extra parameter "device" on mopidy's command line, which crashes the mopidy call:

mopidy -o audio/output=alsasink device=hw:2,0
                                ^^^^^^^^

Is it possible to add some simple quoting to run.sh? Alternatively, include a mopdiy.conf that can be edited by the user (from /share/, for example).

Apart from that: Great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions