Use Downloads folder of the user who launched the chroot
For multiple logins, this uses the LastActiveUser in /home/chronos/Local State to determine which ~/Downloads folder should be mapped in the chroot, i.e. that of the user who started the chroot.
Additionally, this creates /etc/crouton/user containing the email address of the ~/Downloads "owner".
See also issue #1410
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.
- If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
- If your company signed a CLA, they designated a Point of Contact who decides which employees are authorized to participate. You may need to contact the Point of Contact for your company and ask to be added to the group of authorized contributors. If you don't know who your Point of Contact is, direct the project maintainer to go/cla#troubleshoot.
- In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again.
I signed it!
CLAs look good, thanks!
@DennisLfromGA Hi... Would you mind checking the latest commits on your single-user device? Thanks!
It looks like something along these lines is being addressed in CrOS:
EDIT: There is now an environment variable named 'CROS_USER_ID_HASH' that may be an easier approach:
- /home/user/${CROS_USER_ID_HASH}/Downloads
It looks like it was added just recently here: 'chromeos: Pass crosh the user hash (Tue Feb 06 16:07:07 2018)' ~I'm not sure when this variable was implemented but~ I just found references to it in the crosh 'vmc' and 'c' commands.
-DennisLfromGA