Xubuntu / lightdm-gtk-greeter

A GTK greeter for LightDM
GNU General Public License v3.0
150 stars 30 forks source link

LP#1448806 "feature request for a greeter string" #34

Open bluesabre opened 4 years ago

bluesabre commented 4 years ago

Reported first on Launchpad at https://bugs.launchpad.net/lightdm-gtk-greeter/+bug/1448806

LP#0: Morty (physeterm) wrote on 2015-04-27:

I'd like to submit an enhancement/merge proposal for the greeter. It facilitates an option to include a customized greeting string in the login window.

The string is a maximum length of 255 bytes and may include any of the following variables: %n - nodename - ie: spanky %h - FQDN - ie: spanky.mydomain.com %s - system - ie: Linux %r - release - ie: 3.18.11-200 %m - machine - ie: x86_64

To display the default greeting string, include the following in lightdm-gtk-greeter.conf: show-greeter-string = true

To display a customized greeting string, include the above and the following (or any desired string) in lightdm-gtk-greeter.conf: greeter-string-text = Custom string on %h running %s kernel version %r

If this option is selected, the hostname is no longer displayed in the panel menu.

I was going to add an option to hide the user image but I see that it's already been added.

I've included the patch for this. It's based on the trunk source from 25/4/2015

Thanks

bluesabre commented 4 years ago

LP#1: Morty (physeterm) wrote on 2015-04-27:

bluesabre commented 2 years ago

LP#2: Morty (physeterm) wrote on 2015-04-27:

Attachments:

bluesabre commented 2 years ago

LP#3: MARTIN (briaeros) wrote on 2017-06-30:

I do have the same needs, while a little different, as I need to support markup. So my patch and didn't support the %h, %n, ...

However it's done against 2.0.2 so more up to date. Two key configuration were added !

message : a greeting message that is always showed. It support markup and could be a string or a filename which contains multiline markup. message-locked : An addition to message (so message must be defined for this one to be showed) which is printed only when lightdm is used as a lock screen.

Ps : I didn't find how to use glade-3 with the greeter-menu-bar library inside the glade3, so I had modify the glade and -ui.h manually.

Attachments: