Skip to content

Debug images don't support multiple space-separated options in JAVA_OPTS and SE_OPTS #207

@ondrej

Description

@ondrej

The Chrome and Firefox debug images contain an entry_point.sh with some inline execution code that reads and passes on environment variables to the xvfb-run process. This code breaks when SE_OPTS or JAVA_OPTS contains multiple configuration options separated by spaces.

It looks like this fixes the problem:

<   sudo -E -i -u seluser \
<   $(for E in $(grep -vxFf asseluser asroot); do echo $E=$(eval echo \$$E); done) \

---
>   eval sudo -E -i -u seluser \
>   $(for E in $(grep -vxFf asseluser asroot); do echo $E=\"$(eval echo \$$E)\"; done) \
36c36
<   xvfb-run --server-args="$DISPLAY -screen 0 $GEOMETRY -ac +extension RANDR" \

---
>   xvfb-run --server-args=\"$DISPLAY -screen 0 $GEOMETRY -ac +extension RANDR\" \

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions