Comment 19 for bug 8785

Revision history for this message
Matt Zimmerman (mdz) wrote : Re: kdeinit messes up ~/.ICEauthority if a kde program is run via sudo in a non-kde environment

The difference seems to be that libICE is using getenv("HOME") rather than the more reliable getpwuid(getuid()) to find out where the user's home directory is. That's VERY old code, though, and it may not be wise to change its behaviour (definitely not for 6.06).

Another way of looking at the problem is this: why is KDE manipulating the ICEauthority file at all in this case? I don't think GNOME does, though it too uses ICE.

Also interesting, in the Debian bug I just linked, a user reports that they can no longer reproduce on current sid (having had the problem there before). Maybe they've found a workaround?