weston-launch: Clear environment and set it up from scratch
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 29 Jan 2013 19:14:06 +0000 (14:14 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 14 Feb 2013 20:59:49 +0000 (15:59 -0500)
commitb65a207388840eb51d1cd74aaba9863c4423d21c
treeb8a805e4dd82c6848731bbc230ee8918e0320d98
parentcdfc4c2d45b48ab12c243bb7f011f1244b3b0a83
weston-launch: Clear environment and set it up from scratch

With recent systemd[1] XDG_VTNR will leak through to pam, which ends up
setting a vtnr pam argument with the wrong value.  The fix is to clear
XDG_VTNR first, but what we should have been doing all along is resetting
the environment.

Thanks to Ray Strode for helping debug this.

[1] http://cgit.freedesktop.org/systemd/systemd/commit/?id=a8573ccc35a4efe8900be5d48c6c803670540c2b
src/weston-launch.c