Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Issue 661352: Add a hack to deal with needing to spawn pulseaudio, and deal with the changes HOME of chronos. (Closed)

Created:
10 years, 9 months ago by awong
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, kanliu
Visibility:
Public.

Description

Add a hack to deal with needing to spawn pulseaudio, and deal with the changes HOME of chronos. The volume key events need to modify the pulseaudio daemon for the chronos user. For amixer to identify the right daemon, it needs to run a chronos, and it needs to know where ~/.pulse is. The "su" handles changing users, however, depending on what stage you are in login, ${HOME} changes values. The only other processes that talk to pulseaudio currently happen inside UI session, where HOME has been overridden to be /home/chronos/user. We normalize on this value of HOME to avoid starting 2 unrelated daemons. BUG=1720

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use minijail instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -3 lines) Patch
M src/platform/acpi/action_hotkey.sh View 1 1 chunk +16 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
awong
This is a hack, but it works for now I think.
10 years, 9 months ago (2010-03-02 03:19:23 UTC) #1
Chris Masone
http://codereview.chromium.org/661352/diff/1/2 File src/platform/acpi/action_hotkey.sh (right): http://codereview.chromium.org/661352/diff/1/2#newcode15 src/platform/acpi/action_hotkey.sh:15: su chronos -c "HOME=/home/chronos/user amixer set Master toggle" why ...
10 years, 9 months ago (2010-03-02 05:25:27 UTC) #2
awong
http://codereview.chromium.org/661352/diff/1/2 File src/platform/acpi/action_hotkey.sh (right): http://codereview.chromium.org/661352/diff/1/2#newcode15 src/platform/acpi/action_hotkey.sh:15: su chronos -c "HOME=/home/chronos/user amixer set Master toggle" On ...
10 years, 9 months ago (2010-03-02 06:14:22 UTC) #3
awong
Here's a new version using minijail. On 2010/03/02 06:14:22, awong wrote: > http://codereview.chromium.org/661352/diff/1/2 > File ...
10 years, 9 months ago (2010-03-02 18:14:59 UTC) #4
Chris Masone
10 years, 9 months ago (2010-03-02 18:24:40 UTC) #5
lgtm

thanks for making the changes!

Powered by Google App Engine
This is Rietveld 408576698