xfce4-session warning about an unresolvable local hostname

Benedikt Meurer benedikt.meurer at googlemail.com
Fri Jul 22 11:16:05 CEST 2011


On Jul 22, 2011, at 10:32 , Nick Schermer wrote:

> On Fri, Jul 22, 2011 at 8:54 AM, Benedikt Meurer
> <benedikt.meurer at googlemail.com> wrote:
>> 
>> On Jul 22, 2011, at 00:14 , Nick Schermer wrote:
>> 
>>> On Thu, Jul 21, 2011 at 9:37 PM, Guido Berhoerster <gber at opensuse.org> wrote:
>> Hm, seems strange, a host that cannot resolve "localhost", what is the rational behind this in openSUSE?
>> 
>>> I agree, maybe Benny can enlighten us what the purpose was of this
>>> message, but to me it seems unrelated to the desktop.
>> 
>> IIRC the SESSION_MANAGER environment variable contained "localhost", so if session clients are unable to resolve "localhost", they will not be able to connect to the session manager. This might have changed in libSM/libICE since then (most probably, otherwise nothing would work on openSUSE).
> 
> It still does, maybe we need to clarify the message a bit more and add
> a checkbox to hide the message.
> 
> nick at schermer ~$ echo $SESSION_MANAGER
> local/schermer:@/tmp/.ICE-unix/1052,unix/schermer:/tmp/.ICE-unix/1052

There's no reference to the loopback interface in that line, just abstract and unix domain socket references. So this does not require the presence of "localhost" in /etc/hosts to work. Maybe we should simply run a strstr on SESSION_MANAGER looking for "localhost" prior to complaining about being unable to resolve "localhost". That should do the trick.

> Nick


HTH,
Benedikt


More information about the Xfce4-dev mailing list