summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-28 17:58:13 +0000
committerlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-28 17:58:13 +0000
commit8d678efa788dcdfc646daa1325f8949e18754f6d (patch)
treeddfe46687312005aa63faa72578bff307ece646d /remoting
parent39b3bffa0ebf90862ba6ca1da06e1a42298d64d6 (diff)
downloadchromium_src-8d678efa788dcdfc646daa1325f8949e18754f6d.zip
chromium_src-8d678efa788dcdfc646daa1325f8949e18754f6d.tar.gz
chromium_src-8d678efa788dcdfc646daa1325f8949e18754f6d.tar.bz2
Set environment variables in chromoting session
This adds $USER and $LOGNAME, which are present in the normal console session, but not in the chromoting virtual desktop. $HOME already gets set, so doesn't need to be added here. BUG=224035 TEST=manual NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12982014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191175 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rwxr-xr-xremoting/host/installer/linux/debian/chrome-remote-desktop.init3
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/host/installer/linux/debian/chrome-remote-desktop.init b/remoting/host/installer/linux/debian/chrome-remote-desktop.init
index af9d806..efcf256 100755
--- a/remoting/host/installer/linux/debian/chrome-remote-desktop.init
+++ b/remoting/host/installer/linux/debian/chrome-remote-desktop.init
@@ -56,7 +56,8 @@ run_and_ignore_error() {
if [ "$(whoami)" = "$user" ]; then
"$exec" "$@"
else
- start-stop-daemon --chuid "$user" --exec "$exec" --start -- "$@"
+ USER="$user" LOGNAME="$user" start-stop-daemon \
+ --chuid "$user" --exec "$exec" --start -- "$@"
fi
}