How to set gtk-style and background in GDM3
This has something to do with Xauth.... Actually running
xhost +SI:localuser:gdm
as root (or as admin account) let gdm accept gsettings set
commands
Actually the solution for setting gtk-theme or background is
- as root (or admin account)
xhost +SI:localuser:gdm
- as root (or admin account)
sudo su gdm -s /bin/bash
- as gdm execute in sequence
gsettings set org.gnome.desktop.interface gtk-theme GTK3_THEME
gsettings set org.gnome.desktop.interface icon-theme ICON_THEME
gsettings set org.gnome.desktop.interface cursor-theme CURSOR_THEME
gsettings set org.gnome.desktop.background picture-uri 'file://FILE'
for example:
gsettings set org.gnome.desktop.background picture-uri 'file:////usr/share/backgrounds/JardinPolar_by_CarmenGloria_Gonzalez.jpg'
Another important thing to check is that gdm has rw permissions to its home folder, i.e. /var/lib/gdm
!!!IMPORTANT!!!
exit
to exit from being logged in as gdm
followed by
xhost -SI:localuser:gdm
as root or admin user after setting above parameters to deny access to gdm (otherwise it may create problems)