On Tue, 2004-08-24 at 14:17, Mark McLoughlin wrote:
...
I think there are few problems here:
- The $DISPLAY in the environment isn't canonicalised so comparing
semantically identical $DISPLAY in different process might not match.
- The $DISPLAY in the environment doesn't necessarily reflect the
actual display being used - think about --display and --screen.
- Merely keying of the $DISPLAY in the environment is not necessarily
always what you want - e.g. if you want per-screen instead of
per-display or vice-versa
So, the old API wasn't perfect - but there were reasons for it. I think
the main thing we were missing was an easy way of setting DISPLAY with a
canonicalised value without or without the screen number.
And display canonicalization is very important. Without it you can
easily end up with forkbomb loops.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's a notorious one-eyed dog-catcher trapped in a world he never made. She's
a man-hating tempestuous hooker who hides her beauty behind a pair of
thick-framed spectacles. They fight crime!