[PATCH] feature request for a greeter string

Bug #1448806 reported by Morty
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LightDM GTK Greeter
New
Unknown

Bug Description

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

Revision history for this message
Morty (physeterm) wrote :
Revision history for this message
MARTIN (briaeros) wrote :

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.

Sean Davis (bluesabre)
summary: - feature request for a greeter string
+ [PATCH] feature request for a greeter string
Sean Davis (bluesabre)
Changed in lightdm-gtk-greeter:
importance: Undecided → Unknown
status: New → Unknown
Changed in lightdm-gtk-greeter:
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.