can't catch $USER in /etc/gdm/PostLogin/Default
Bug #463376 reported by
ericlesoll
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdm |
Fix Released
|
High
|
|||
gdm (Ubuntu) |
Fix Released
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
Ubuntu Karmic Koala
After a fresh install on some machines and update from Jaunty on another one, we can't catch $USER $USERNAME $LOGNAME
from /etc/gdm/
If in a terminal we run : echo $USER, we get the real login name.
description: | updated |
Changed in gdm: | |
importance: | Unknown → High |
status: | Unknown → Fix Released |
To post a comment you must log in.
I also have this problem on my laptop running Karmic with all updates available as of November 16th.
If I put those 3 lines in /etc/gdm/ PostLogin/ Default:
echo $USER > /tmp/aaa.txt
echo $USERNAME >> /tmp/aaa.txt
echo $LOGNAME >> /tmp/aaa.txt
after every login I get this result:
$ cat /tmp/aaa.txt
gdm
gdm
gdm
I would expect to get my real login name in those 3 variables instead of "gdm", which is of no use to take specific action based on which user is logging in. This was working as expected with at least the 3 previous versions of Ubuntu.