/usr/share/acpi-support/power-funcs getXuser returns wrong $user
Bug #11035 reported by
Christian Luiijten
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdm (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Line 8:
user=`who| grep " :0" | awk '{print $1}'`
Gets incorrect username when that username is (originally) longer than 8 chars,
since 'who' only displays the first 8 chars.
To post a comment you must log in.
Seb, is there any chance we can have a file in a known location created when a
user logs in and with the name of that user? That way we can figure out who owns
the X session rather more reliably.