canonical / lightdm

Display Manager
GNU General Public License v3.0
813 stars 137 forks source link

Unable to set background image for lightdm. #135

Open apoorv569 opened 3 years ago

apoorv569 commented 3 years ago

I yesterday wiped my hard drive and reinstalled Arch Linux with Openbox, and I'm using lightdm as my display/login manager with lightdm-slick-greeter from the AUR as the lightdm greeter. Everything is working but I'm not able to set a background wallpaper/image for my slick greeter, I'm using lightdm-settings from the AUR, to set the background, but setting the image does nothing, other options like draw a grid and setting the GTK theme, icon theme and cursor theme works.

zippy-zebu commented 3 years ago

You need to update account service with the background file. It calls "org.freedesktop.Accounts.User" "SetBackgroundFile" to update. This needs to happen every time there is change in picture-uri signal (for gnome it is "org.gnome.desktop.background"). This usually job for settings-daemon which ever session you are using mate,unity or gnome.

Also check https://github.com/linuxmint/slick-greeter/issues/107 or file a new issue against sleek-greeter.

apoorv569 commented 3 years ago

You need to update account service with the background file. It calls "org.freedesktop.Accounts.User" "SetBackgroundFile" to update. This needs to happen every time there is change in picture-uri signal (for gnome it is "org.gnome.desktop.background"). This usually job for settings-daemon which ever session you are using mate,unity or gnome.

Also check linuxmint/slick-greeter#107 or file a new issue against sleek-greeter.

I'm sorry, can you please tell how to do that? Do I need to restart some service? I'm using Openbox. I don't have any other WM/DE installed.

apoorv569 commented 3 years ago

You need to update account service with the background file. It calls "org.freedesktop.Accounts.User" "SetBackgroundFile" to update. This needs to happen every time there is change in picture-uri signal (for gnome it is "org.gnome.desktop.background"). This usually job for settings-daemon which ever session you are using mate,unity or gnome.

Also check linuxmint/slick-greeter#107 or file a new issue against sleek-greeter.

I was able to fix it, I was using wallpapers in my /home/username/Downloads/Wallpapers, and lightdm expects wallpapers outside of the home directory somewhere like /usr/share/backgrounds, I just moved the wallpapers I want there to select, and its showing now.