Re: _NET_DESKTOP_GEOMETRY, _NET_WM_HANDLED_ICONS and WM_CLIENT_MACHINE question
- From: Ray Strode <halfline hawaii rr com>
- To: wm-spec-list gnome org
- Subject: Re: _NET_DESKTOP_GEOMETRY, _NET_WM_HANDLED_ICONS and WM_CLIENT_MACHINE question
- Date: Thu, 12 Sep 2002 21:55:15 -1000
Is the attached patch ok for these two issues (I hope sgml is the
source)?
It looks pretty good to me. On my system gethostname() seems to return
a fully-qualified name - maybe just a configuration issue?
I tried on two computers, both use only host without domain, for both the
code snippet and WM_CLIENT_MACHINE.
From the gethostname() linux manpage:
> The gethostname() function returns a NUL-terminated hostname (set
earlier by sethostname())
So it's going to return whatever was passed to sethostname() last
(probably by /bin/hostname at
bootup)
On Red Hat, at bootup, the hostname is set to whatever the HOSTNAME
environment variable
is set to in /etc/sysconfig/network. If the environment variable is not
set and DHCP is being used,
then the hostname is retrieved by doing a reverse lookup on the host
machine's newly assigned
IP. The reverse lookup will return a FQDN, so I think that's what's
probably happening in Havoc's
case.
I'm not sure how it works in SuSE, but I guess the bottom line is that
your systems' hostnames aren't
being set to FQDNs and Havoc's system's hostname is.
--Ray
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]