You are not logged in.

#1 2018-09-02 16:19:05

darthpenguin
Member
Registered: 2011-09-16
Posts: 113

[SOLVED] LightDM-GTK-Greeter - Use user wallpaper if available.

Hi guys, I'm using lightdm with the gtk greeter. I have configured it using lightdm-gtk-greeter-settings. There is a check box for "Use user wallpaper if available". When I have it checked I expect that whatever wallpaper I have set on my desktop session (cinnamon) that same wallpaper should also show on the lightdm login screen. This works exactly as expected if I set a wallpaper from the gnome-backgrounds package; ie. If I set any of the wallpapers from /usr/share/backgrounds/gnome as the current wallpaper that will also show in lightdm. But, if I pick a jpg from my home directory and set it as the wallpaper lightdm does not seem to detect that and it just reverts to the default wallpaper. I'm assuming this is some kind of permissions issue but I cannot find any documentation about it. Any help would be appreciated. Thanks.

Edit: I feel like an idiot. it was a simple permissions issue. I just had to change to permissions of my home directory with sudo chmod g+rx /home/darthpenguin then I had to add lightdm to the 'users' group and make sure my home folder was part of the 'users' group. Since I have no other users on the laptop this solution works. But, on a system with multiple users, each being members of the 'users' group, then each user would be able to read my home directory. Would there be anyway of only giving the lightdm user read and execute permissions on my home directory?

Last edited by darthpenguin (2018-09-02 20:43:36)

Offline

#2 2018-09-02 17:52:40

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] LightDM-GTK-Greeter - Use user wallpaper if available.

On a system with multiple users, wouldn't the best solution be to just put the wallpapers in /usr/share/backgrounds ?

Offline

#3 2018-09-02 20:54:08

darthpenguin
Member
Registered: 2011-09-16
Posts: 113

Re: [SOLVED] LightDM-GTK-Greeter - Use user wallpaper if available.

So I took a page out of the way Ubuntu handles permissions.
My permissions looked like this at first.

/home: ls -l
drwxr-x--- 27 darthpenguin users 4.0K Sep  2 16:42 darthpenguin

But I created a new group

 sudo groupadd darthpenguin 

Then I added the 'lightdm' user to the darthpenguin group

 sudo usermod -a -G darthpenguin lightdm 

Then I changed the group assigned to all the files and folders in my home directory

 
sudo chgrp darthpenguin /home/darthpenguin -Rv 
sudo chmod 750 /home/darthpenguin -Rv

Now my permissions look like this

 /home: ls -l
drwxr-x--- 27 darthpenguin darthpenguin 4.0K Sep  2 16:42 darthpenguin 

Now lightdm (as part of the darthpenguin group) can read and execute all files in my home directory and the wallpaper changes as expected. I think that is the most secure solution.

Last edited by darthpenguin (2018-09-02 20:56:39)

Offline

Board footer

Powered by FluxBB