Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-05-20 23:20:15

Sideburns
Member
From: Camarillo, CA
Registered: 2011-03-30
Posts: 436
Website

Configuring lightdm's greeter

I have a laptop running Fedora 31 and Xfce 4/14, fully updated.  I'm trying to configure the greeter to use a custom background, but all I can get is a black background.  I've tried both lightdm-settings and lightdm-gtk-greeter-settings with the same results.  Does the image have to be in a specific location or file format?


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

#2 2020-05-20 23:46:46

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 253

Re: Configuring lightdm's greeter

From the Arch wiki:

Changing background images/colors

You can set the background to a hex color or an image. Some greeters offer more robust background options like background selection from the login screen, random backgrounds, etc.
GTK greeter

You can use the lightdm-gtk-greeter-settings gui.

Users wishing to customize the wallpaper on the greeter screen need to edit /etc/lightdm/lightdm-gtk-greeter.conf and define the background variable under the [greeter] section. For example:

/etc/lightdm/lightdm-gtk-greeter.conf

[greeter]
background=/usr/share/pixmaps/black_and_white_photography-wallpaper-1920x1080.jpg

Note: It is recommended to place the PNG or JPG file in /usr/share/pixmaps since the LightDM user needs read access to the wallpaper file.


Siduction
Debian Sid
Xfce 4.14

Offline

#3 2020-05-21 02:06:31

Sideburns
Member
From: Camarillo, CA
Registered: 2011-03-30
Posts: 436
Website

Re: Configuring lightdm's greeter

Interesting: you're saying that neither GUI can change the background, even though both of them have a place where you can set the wallpaper, and I remember changing it in a GUI on a different machine.  And, I have managed to change it from the default for my distro to a blank, black screen.


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

#4 2020-05-21 02:42:31

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 253

Re: Configuring lightdm's greeter

I think it can be done in the greeter settings this but like the wiki post mentioned the image should be in /usr/share/pixmaps so it can be seen by the greeter.


Siduction
Debian Sid
Xfce 4.14

Offline

#5 2020-05-22 01:40:01

Sideburns
Member
From: Camarillo, CA
Registered: 2011-03-30
Posts: 436
Website

Re: Configuring lightdm's greeter

Well, that did work, so thanx, but it leaves me with a question.  The image was in ~/Pictures, and I know that /home is mounted at boot.  I wonder why the greeter couldn't find it until I put a copy in /usr/share/pixmaps.


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

#6 2020-05-22 10:31:39

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 6,962

Re: Configuring lightdm's greeter

When lightdm runs the greeter, it runs it as the "lightdm" user. This user account, by default, does not have access to your home directory so it cannot see or use those images. If you look at your /var/log/lightdm.log file you'll see an entry where it starts the greeter and with which user account:

[+3.23s] DEBUG: Session pid=660: Started with service 'lightdm-greeter', username 'lightdm'

You could work around this if you granted the lightdm user access to your home directory.

Offline

#7 2020-05-28 20:18:44

peter.48
Member
Registered: 2017-01-31
Posts: 41

Re: Configuring lightdm's greeter

I also have F31 and I have no problem with a custom background, I only have three lines in my /etc/lightdm/lightdm-gtk-greeter.conf, without the need for a lightdm-gtk-greeter-settings gui (which is sometimes problematic):

[greeter]
background = /usr/share/backgrounds/1920x1200_f26.png
default-user-image = /casa_1/trastero/Grafica/ICONOS/iconos_PNG/aviones/tempest_icono.png
user-background = false

From my experience I can say that the location of the image is not important.

Offline

#8 2020-05-29 07:16:04

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,107

Re: Configuring lightdm's greeter

ToZ wrote:

When lightdm runs the greeter, it runs it as the "lightdm" user. This user account, by default, does not have access to your home directory so it cannot see or use those images. If you look at your /var/log/lightdm.log file you'll see an entry where it starts the greeter and with which user account:

[+3.23s] DEBUG: Session pid=660: Started with service 'lightdm-greeter', username 'lightdm'

You could work around this if you granted the lightdm user access to your home directory.

While I don't think much - and none of it good - about the practice of having odd "users" on a computer that the owner didn't expressly create... In other words, neither the root/admin account nor real user accounts... In this instance, it inadvertently(?) does serve one useful purpose. You might end up one day deleting an image from one of your image directories, and never even give a thought to, "Oh, wait, is that the image that I'm using for my login screen?" But you're probably not going to do so to an image that is stored in your boot(?) directory - because common sense is going to tell you that it's there for a purpose.

So maybe we should place a copy of the image we want to use at boot time, into the same directory that holds the rest of that boot stuff (instead of using the original image file in its original location).


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

Board footer

Powered by FluxBB