You are not logged in.

#1 2014-06-22 06:29:26

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[lightdm] hide hostname [solved]

Hi there,

I could not find any option in /etc/lightdm/lightdm.conf or /etc/lightdm/lightdm-gtk-greeter.conf to hide the hostname which by default is shown in the top left corner.

Do you know of any way to hide it?

Thanks ahead!

Last edited by orschiro (2014-06-24 07:57:08)

Offline

#2 2014-06-22 06:49:21

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [lightdm] hide hostname [solved]

I believe you'll have to set the indicators list. This should be the default:

indicators=~host;~spacer;~clock;~spacer;~session;~language;~a11y;~power
indicators=~spacer;~clock;~spacer;~session;~language;~a11y;~power

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2014-06-22 11:28:12

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [lightdm] hide hostname [solved]

Thanks progandy. I assume you mean show-indicators instead of indicators? At least in my config there is no `indicators`.

Thus, I tried to set several variations in /etc/lightdm/lightdm-gtk-greeter.conf:

show-indicators=false
show-indicators=
show-indicators=~spacer

But they all still show the hostname, unfortunately.

Offline

#4 2014-06-22 16:53:32

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [lightdm] hide hostname [solved]

That might have changed in the bzr version.
Edit: Yes, revision 287 has changed that.

Last edited by progandy (2014-06-22 16:56:33)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2014-06-23 05:52:24

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [lightdm] hide hostname [solved]

Thanks, I will try the bzr version then!

Offline

#6 2014-06-24 05:51:04

Padfoot
Member
Registered: 2010-09-03
Posts: 382

Re: [lightdm] hide hostname [solved]

In /etc/lightdm-gtk-greeter.conf

# show-indicators = semi-colon ";" separated list of allowed indicator modules. Built-in indicators include "~a11y", "~language", "~session", "~power". Unity indicators can be represented by short name (e.g. "sound", "power"), service file name, or absolute path

So unless you have Ubuntu's libindicator support and indicators installed, the only options you have in Arch are ~ally, ~language, ~session and ~power.

Cheers.

Offline

#7 2014-06-24 06:43:57

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [lightdm] hide hostname [solved]

the only options you have in Arch are ~ally, ~language, ~session and ~power.

Thus, no option to enable/disable hostname, correct?

Offline

#8 2014-06-24 07:40:04

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [lightdm] hide hostname [solved]

orschiro wrote:

the only options you have in Arch are ~ally, ~language, ~session and ~power.

Thus, no option to enable/disable hostname, correct?

The change in the code has not made it into the configuration and documentation examples yet.
Here are some snipptes from the current bzr source code:

...
const gchar *DEFAULT_LAYOUT[] = {"~host", "~spacer", "~clock", "~spacer",
                                     "~session", "~language", "~a11y", "~power", NULL};

...

    if (g_key_file_has_key (config, "greeter", "indicators", NULL))
    {   /* no option = default list, empty value = empty list */
        names = g_key_file_get_string_list (config, "greeter", "indicators", &length, NULL);
    }
    else if (g_key_file_has_key (config, "greeter", "show-indicators", NULL))
    {   /* fallback mode: no option = empty value = default list */
        names = g_key_file_get_string_list (config, "greeter", "show-indicators", &length, NULL);
        if (length == 0)
            fallback = TRUE;
    }
... 
progandy@pamobile ~ % cat /etc/lightdm/lightdm-gtk-greeter.conf
[greeter]
indicators=~spacer;~clock;~spacer;~session;~language;~a11y;~power
progandy@pamobile ~ % lightdm --test-mode

ldmnohost12s13.png


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#9 2014-06-24 07:56:58

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [lightdm] hide hostname [solved]

Thanks for your example!

I will mark this as solved.

Offline

Board footer

Powered by FluxBB