Xfce How do I Change the Wallpaper/Background in Lightdm Login Screen?

Hi, I just finished a FreeBSD 15 with XFCE install in a Dell Latitude 7490. As per the instructions in https://www.freebsdsoftware.org/blog/freebsd-xfce-desktop/, I used the lightdm login manager. The lightdm login page currently shows a black background with just the login window. I'd like to add an image there, but no suggestons that I've found work. My lightdm-gtk-greeterconfig file looks like this:

Code:
# LightDM GTK Configuration
# Available configuration options listed below.
# Please list the configuration options that you want to use after [greeter] without the # for example:
# [greeter]
# example-option=example-value
#
# Appearance:
theme-name = Adwaita-dark
icon-theme-name = Adwaita
#  cursor-theme-name = Cursor theme to use
#  cursor-theme-size = Cursor size to use
background = /home/mikeb/Images/glass.jpg
#  user-background = false|true ("true" by default)  Display user background (if available)
#  transition-duration = Length of time (in milliseconds) to transition between background images ("500" by default)
#  transition-type = ease-in-out|linear|none  ("ease-in-out" by default)
#
# Fonts:
font-name = Sans 11
#  xft-antialias = false|true  Whether to antialias Xft fonts
#  xft-dpi = Resolution for Xft in dots per inch (e.g. 96)
#  xft-hintstyle = none|slight|medium|hintfull  What degree of hinting to use
#  xft-rgba = none|rgb|bgr|vrgb|vbgr  Type of subpixel antialiasing
#
# Login window:
#  active-monitor = Monitor to display greeter window (name or number). Use #cursor value to display greeter at monitor with cursor. Can be a semicolon separated list
#  position = x y ("50% 50%" by default)  Login window position
#  default-user-image = Image used as default user icon, path or #icon-name
#  hide-user-image = false|true ("false" by default)
#  round-user-image = false|true ("true" by default)
#  highlight-logged-user  = false|true ("true" by default)
#
# Panel:
#  panel-position = top|bottom ("top" by default)
#  clock-format = strftime-format string, e.g. %H:%M
#  indicators = semi-colon ";" separated list of allowed indicator modules. Built-in indicators include "~a11y", "~language", "~session", "~power", "~clock", "~host", "~spacer", "~layout". Unity indicators can be represented by short name (e.g. "sound", "power"), service file name, or absolute path
#  keyboard-layouts = semi-colon ";" separated list keyboard layouts to be listed by the "~layout" indicator (empty by default which provides all available layouts)
#
# Accessibility:
#  a11y-states = states of accessibility features: "name" - save state on exit, "-name" - disabled at start (default value for unlisted), "+name" - enabled at start. Allowed names: contrast, font, keyboard, reader.
#  keyboard = command to launch on-screen keyboard (e.g. "onboard")
#  keyboard-position = x y[;width height] ("50%,center -0;50% 25%" by default)  Works only for "onboard"
#  reader = command to launch screen reader (e.g. "orca")
#  at-spi-enabled = false|true ("true" by default) Enables accessibility at-spi-command if the greeter is built with it enabled
#
# Security:
#  allow-debugging = false|true ("false" by default)
#  screensaver-timeout = Timeout (in seconds) until the screen blanks when the greeter is called as lockscreen
#
# Session:
#  default-session = session manager to be started when none has been selected by the user and no one is set as last used (unset by default)
#
# Template for per-monitor configuration:
#  [monitor: name]
background = /usr/local/share/backgrounds/xfce/xfce-shapes.svg
#user-background = overrides default value
laptop = true
#  transition-duration = overrides default value
#
[greeter]
background=/home/mikeb/Images/glass.jpg
user-background=/usr/local/share/backgrounds/xfce/xfce-shapes.svg
#theme-name=
#icon-theme-name=
#font-name=
#xft-antialias=


#xft-dpi=
#xft-hintstyle=
#xft-rgba=
#indicators=
#clock-format=
#keyboard=
#reader=
#position=
#screensaver-timeout=

 Applications/Settings/Light DM + GTK Greeter Settings won't open a window, and nothing I've tried editing in the above file has any effect at all. What can I do to edit this preference? Thanks in advance.
 
frogprince , lightm-gtk-greeter-settings needs to write to /usr/local/etc/lightdm, so you need to run it with sudo or similar.

I think that by default the login background is the defined background of the selected user, but that only works if lightdm can read the user folder and the background file (so check the permissions of your home folder to have +read +execute for the other group).
Otherwise use the following in /usr/local/etc/lightdm/lightdm-gtk-greeter.conf:

For specific backgrounds:

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

or (for user backgrounds):

[greeter]
user-background=true

or (for color)

[greeter]
background=#62a0ea

Please note that if you use slick-greeter or the kde-greeter the settings are different.
 
doas lightdm-gtk-greeter-settings

make changes, is ok
Not sudo

%> sudo lightdm-gtk-greeter-settings


Mot de passe :
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified


(lightdm-gtk-greeter-settings:45273): Gtk-CRITICAL **: 23:34:31.204: _gtk_css_lookup_resolve: assertion '(((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((provider)); GType __t = ((_gtk_style_provider_private_get_type ())); gboolean __r; if (!__inst) __r = (0); else if (__inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))' failed
/usr/local/lib/python3.12/site-packages/lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py:81: Warning: g_object_set_data_full: assertion 'G_IS_OBJECT (object)' failed
builder.add_from_file(helpers.get_data_path('%s.ui' % cls.__name__))

(lightdm-gtk-greeter-settings:45273): Gtk-ERROR **: 23:34:31.205: Can't create a GtkStyleContext without a display connection
Piège Trace/BPT
 
Back
Top