[Mageia-dev] Debugging boot times
mageia at colin.guthr.ie
Thu Nov 10 14:13:07 CET 2011
'Twas brillig, and Frank Griffin at 10/11/11 12:39 did gyre and gimble:
> On 11/10/2011 07:06 AM, Colin Guthrie wrote:
>> 'Twas brillig, and Frank Griffin at 10/11/11 11:43 did gyre and gimble:
>>> If the network isn't up when the dm launches, and you get your hostname
>>> via DHCP, then $HOSTNAME is wrong on the desktop, no ?
>> Perhaps but IMO a HOSTNAME env var is a generally dumb idea anyway (I'm
>> sure some would disagree, but really is $HOSTNAME really much different
>> from HOSTNAME=`hostname`?)
> I agree, but unfortunately, bash PS1 \h doesn't, and neither did the old
> GDM themes that showed hostname (although in their case the hostname
> probably hadn't been set because dm didn't wait for network-up).
Well in the GDM case this could (and should) be solved more
intelligently. i.e. by properly noticing when the system hostname
changes with network events etc.
As for PS1 I see the issue, but I also think solving it by waiting is
fundamentally the wrong approach.
So the correct way to fix this is to ensure the DE environment itself
notices the changes and updates it's own environment, then whenever new
gnome-terminal etc. apps are launched, they inherit this updated
environment, not the one that was present when it was initialised.
So while delaying things might be a workaround, I think it's
fundamentally the wrong fix.
Tribalogic Limited http://www.tribalogic.net/
Mageia Contributor http://www.mageia.org/
PulseAudio Hacker http://www.pulseaudio.org/
Trac Hacker http://trac.edgewall.org/
More information about the Mageia-dev