canonical / lightdm

Display Manager
GNU General Public License v3.0
827 stars 138 forks source link

[question] where is background image cached ? #344

Closed iharh closed 7 months ago

iharh commented 7 months ago

I'm on rhino-linux (rolling ubuntu) and can't reset my background image. I deleted approprate configuration, removed the image file from disk (rhino-blur.png) but nothing helped. Could you help me understand, where is it cached and how to clean it up?

$ lightdm --show-config

   [Seat:*]
A  allow-guest=false
C  greeter-wrapper=/usr/lib/lightdm/lightdm-greeter-session
D  guest-wrapper=/usr/lib/lightdm/lightdm-guest-session
E  xserver-command=X -core
F  greeter-setup-script=xubuntu-numlockx
G  greeter-session=lightdm-gtk-greeter
I  user-session=xubuntu

   [LightDM]
B  backup-logs=false

   [greeter]
J  theme-name=Yaru-purple-dark
J  icon-theme-name=Papirus-Dark
J  cursor-theme-name=Quintom_Ink
J  font-name=Ubuntu Regular
J  user-background=false
J  background=#772953

Sources:
A  /usr/share/lightdm/lightdm.conf.d/50-disable-guest.conf
B  /usr/share/lightdm/lightdm.conf.d/50-disable-log-backup.conf
C  /usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
D  /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
E  /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
F  /usr/share/lightdm/lightdm.conf.d/50-xubuntu-numlock.conf
G  /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf
H  /usr/share/lightdm/lightdm.conf.d/60-unicorn.conf
I  /usr/share/lightdm/lightdm.conf.d/60-xubuntu.conf
J  /etc/lightdm/lightdm.conf.d/rhino.conf

cat /etc/lightdm/lightdm.conf.d/rhino.conf

[greeter]
theme-name = Yaru-purple-dark
icon-theme-name = Papirus-Dark
cursor-theme-name = Quintom_Ink
font-name = Ubuntu Regular
user-background = false
background = #772953

but, again, I still get rhino-blur.png as a background

iharh commented 7 months ago

$ cat /var/log/lightdm/lightdm.log

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=1475
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-disable-guest.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-disable-log-backup.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-xubuntu-numlock.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/60-unicorn.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/60-xubuntu.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /var/lib/flatpak/exports/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf.d/rhino.conf
[+0.00s] DEBUG:   Unknown group [greeter] in configuration
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.00s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
[+0.00s] DEBUG: Monitoring logind for seats
[+0.00s] DEBUG: New seat added from logind: seat0
[+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.00s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.00s] DEBUG: Seat seat0: Starting
[+0.00s] DEBUG: Seat seat0: Creating greeter session
[+0.00s] DEBUG: Seat seat0: Creating display server of type x
[+0.00s] DEBUG: Using VT 7
[+0.00s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.00s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.00s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.00s] DEBUG: XServer 0: Launching X Server
[+0.00s] DEBUG: Launching process 1506: /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.00s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.01s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.01s] DEBUG: User /org/freedesktop/Accounts/User1002 added
[+0.02s] DEBUG: User /org/freedesktop/Accounts/User1001 added
[+0.50s] DEBUG: Got signal 10 from process 1506
[+0.50s] DEBUG: XServer 0: Got signal from X server :0
[+0.50s] DEBUG: XServer 0: Connecting to XServer :0
[+0.51s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.51s] DEBUG: Session pid=1611: Started with service 'lightdm-greeter', username 'lightdm'
[+0.52s] DEBUG: Session pid=1611: Authentication complete with return value 0: Success
[+0.52s] DEBUG: Seat seat0: Session authenticated, running command
[+0.52s] DEBUG: Launching process 1615: xubuntu-numlockx
[+0.53s] DEBUG: Process 1615 exited with return value 0
[+0.53s] DEBUG: Seat seat0: Exit status of xubuntu-numlockx: 0
[+0.53s] DEBUG: Session pid=1611: Running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/lightdm-gtk-greeter
[+0.53s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+0.53s] DEBUG: Session pid=1611: Logging to /var/log/lightdm/seat0-greeter.log
[+0.71s] DEBUG: Activating VT 7
[+0.71s] DEBUG: Activating login1 session c1
[+0.71s] DEBUG: Seat seat0 changes active session to c1
[+0.71s] DEBUG: Session c1 is already active
[+0.81s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+1.05s] DEBUG: Greeter start authentication for iharh
[+1.05s] DEBUG: Session pid=1706: Started with service 'lightdm', username 'iharh'
[+1.05s] DEBUG: Session pid=1706: Got 1 message(s) from PAM
[+1.05s] DEBUG: Prompt greeter with 1 message(s)
[+68.66s] DEBUG: Continue authentication
[+68.67s] DEBUG: Session pid=1706: Authentication complete with return value 0: Success
[+68.67s] DEBUG: Authenticate result for user iharh: Success
[+68.67s] DEBUG: User iharh authorized
[+68.67s] DEBUG: Greeter sets language en_US
[+68.70s] DEBUG: Greeter requests session xmonad
[+68.70s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+68.70s] DEBUG: Terminating login1 session c1
[+68.70s] DEBUG: Session pid=1611: Sending SIGTERM
[+68.70s] DEBUG: Session pid=1611: Exited with return value 0
[+68.70s] DEBUG: Seat seat0: Session stopped
[+68.70s] DEBUG: Seat seat0: Greeter stopped, running session
[+68.70s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+68.70s] DEBUG: Session pid=1706: Running command /usr/sbin/lightdm-session /usr/local/bin/xmonad
[+68.70s] DEBUG: Creating shared data directory /var/lib/lightdm-data/iharh
[+68.70s] DEBUG: Session pid=1706: Logging to .xsession-errors
[+68.90s] DEBUG: Activating VT 7
[+68.90s] DEBUG: Activating login1 session c2
[+68.90s] DEBUG: Seat seat0 changes active session to c2
[+68.90s] DEBUG: Session c2 is already active
iharh commented 7 months ago

$cat /var/log/lightdm/seat0-greeter.log

** Message: 10:03:34.877: Starting lightdm-gtk-greeter 2.0.9 (Feb 25 2024, 03:20:24)
** Message: 10:03:34.878: [Configuration] Reading file: /usr/share/lightdm/lightdm-gtk-greeter.conf.d/01_ubuntu.conf
** Message: 10:03:34.878: [Configuration] Reading file: /usr/share/lightdm/lightdm-gtk-greeter.conf.d/30_xubuntu.conf
** Message: 10:03:34.878: [Configuration] Reading file: /etc/lightdm/lightdm-gtk-greeter.conf

(lightdm-gtk-greeter:1643): dbind-WARNING **: 10:03:34.909: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

** (lightdm-gtk-greeter:1643): WARNING **: 10:03:34.985: [PIDs] Failed to execute command: /usr/libexec/at-spi-bus-launcher
Excess arguments.

(lightdm-gtk-greeter:1643): Gtk-WARNING **: 10:03:35.468: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

(lightdm-gtk-greeter:1643): Gtk-WARNING **: 10:03:35.698: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

(lightdm-gtk-greeter:1643): Gtk-WARNING **: 10:03:35.765: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

(lightdm-gtk-greeter:1643): Gtk-WARNING **: 10:03:35.831: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

(lightdm-gtk-greeter:1643): Gtk-WARNING **: 10:03:35.897: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

(lightdm-gtk-greeter:1643): Gtk-WARNING **: 10:03:35.963: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

(lightdm-gtk-greeter:1643): Gtk-WARNING **: 10:03:36.029: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

(lightdm-gtk-greeter:1643): Gtk-WARNING **: 10:03:36.095: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

(lightdm-gtk-greeter:1643): Gtk-WARNING **: 10:03:36.161: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

(lightdm-gtk-greeter:1643): Gtk-WARNING **: 10:03:36.213: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

(lightdm-gtk-greeter:1643): Gtk-WARNING **: 10:03:46.225: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

(lightdm-gtk-greeter:1643): Gtk-WARNING **: 10:04:00.105: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

** (lightdm-gtk-greeter:1643): WARNING **: 10:04:43.328: [PIDs] Failed to terminate process #1680: No such process
iharh commented 7 months ago

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

# 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 = GTK theme to use
#  icon-theme-name = Icon theme to use
#  cursor-theme-name = Cursor theme to use
#  cursor-theme-size = Cursor size to use
#  background = Background file to use, either an image path or a color (e.g. #772953)
#  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 = Font to use
#  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 = overrides default value
#  user-background = overrides default value
#  laptop = false|true ("false" by default) Marks monitor as laptop display
#  transition-duration = overrides default value
#
[greeter]
#background=
#user-background=
#theme-name=
#icon-theme-name=
#font-name=
#xft-antialias=
#xft-dpi=
#xft-hintstyle=
#xft-rgba=
#indicators=
#clock-format=
#keyboard=
#reader=
#position=
#screensaver-timeout=
iharh commented 7 months ago

After uncommenting background and setting it to background= #772953 at at /etc/lightdm/lightdm-gtk-greeter.conf I can see purple color FOR A SECOND, and then the rhino-blur.png is displayed again.

iharh commented 7 months ago

The issue is caused by xfce desktop:

/usr/bin/xfdesktop-settings
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml