You are not logged in.

#1 2022-02-17 16:03:23

byjove01
Member
From: Alps, France
Registered: 2021-02-15
Posts: 223

[SDDM] No background when I connect

Hello.

The title fits perfectly the problem, when I log on to my PC, I don't see any background if not a disturbing white one on the screen. I tried lot of times to reintroduce my custom background via system settings, but it doesn't seem to save the new configuration. I also tried to edit the SDDM file related to that, same thing.

Any idea?

Offline

#2 2022-02-17 16:56:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,302

Re: [SDDM] No background when I connect

That's not really telling anything, post your sddm.conf. Where is your background image located? You need to give a path accessible to the sddm user which will typically rule out a direct path in e.g. your home dir

Offline

#3 2022-02-18 08:58:06

byjove01
Member
From: Alps, France
Registered: 2021-02-15
Posts: 223

Re: [SDDM] No background when I connect

V1del wrote:

That's not really telling anything, post your sddm.conf. Where is your background image located? You need to give a path accessible to the sddm user which will typically rule out a direct path in e.g. your home dir

My background is located in /home/user/.system/. That's where I put my system-related customizations like sound effects or images. Here's the sddm.conf.

[Autologin]
# Whether sddm should automatically log back into sessions when they exit
Relogin=false

# Name of session file for autologin session (if empty try last logged in)
Session=

# Username for autologin session
User=


[General]
# Halt command
HaltCommand=/usr/bin/systemctl poweroff

# Input method module
InputMethod=

# Comma-separated list of Linux namespaces for user session to enter
Namespaces=

# Initial NumLock state. Can be on, off or none.
# If property is set to none, numlock won't be changed
# NOTE: Currently ignored if autologin is enabled.
Numlock=none

# Reboot command
RebootCommand=/usr/bin/systemctl reboot


[Theme]
# Current theme name
Current=

# Cursor theme used in the greeter
CursorTheme=

# Number of users to use as threshold
# above which avatars are disabled
# unless explicitly enabled with EnableAvatars
DisableAvatarsThreshold=7

# Enable display of custom user avatars
EnableAvatars=true

# Global directory for user avatars
# The files should be named <username>.face.icon
FacesDir=/usr/share/sddm/faces

# Font used in the greeter
Font=

# Theme directory path
ThemeDir=/usr/share/sddm/themes


[Users]
# Default $PATH for logged in users
DefaultPath=/usr/local/sbin:/usr/local/bin:/usr/bin

# Comma-separated list of shells.
# Users with these shells as their default won't be listed
HideShells=

# Comma-separated list of users that should not be listed
HideUsers=

# Maximum user id for displayed users
MaximumUid=60513

# Minimum user id for displayed users
MinimumUid=1000

# Remember the session of the last successfully logged in user
RememberLastSession=true

# Remember the last successfully logged in user
RememberLastUser=true

# When logging in as the same user twice, restore the original session, rather than create a new one
ReuseSession=true


[Wayland]
# Enable Qt's automatic high-DPI scaling
EnableHiDPI=false

# Path to a script to execute when starting the desktop session
SessionCommand=/usr/share/sddm/scripts/wayland-session

# Directory containing available Wayland sessions
SessionDir=/usr/share/wayland-sessions

# Path to the user session log file
SessionLogFile=.local/share/sddm/wayland-session.log


[X11]
# Path to a script to execute when starting the display server
DisplayCommand=/usr/share/sddm/scripts/Xsetup

# Path to a script to execute when stopping the display server
DisplayStopCommand=/usr/share/sddm/scripts/Xstop

# Enable Qt's automatic high-DPI scaling
EnableHiDPI=false

# The lowest virtual terminal number that will be used.
MinimumVT=1

# Arguments passed to the X server invocation
ServerArguments=-nolisten tcp

# Path to X server binary
ServerPath=/usr/bin/X

# Path to a script to execute when starting the desktop session
SessionCommand=/usr/share/sddm/scripts/Xsession

# Directory containing available X sessions
SessionDir=/usr/share/xsessions

# Path to the user session log file
SessionLogFile=.local/share/sddm/xorg-session.log

# Path to the Xauthority file
UserAuthFile=.Xauthority

# Path to xauth binary
XauthPath=/usr/bin/xauth

# Path to Xephyr binary
XephyrPath=/usr/bin/Xephyr

Offline

#4 2022-03-08 05:23:20

byjove01
Member
From: Alps, France
Registered: 2021-02-15
Posts: 223

Re: [SDDM] No background when I connect

Someone?

Offline

#5 2022-03-08 07:24:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,302

Re: [SDDM] No background when I connect

Sorry this one fell off a bit.

You probably need to put that image into /usr/share/sddm/themes/${yourtheme}/image.png and have a themes.user.conf with

[General]
background=image
type=image

You'd probably have to actively set the theme you want to use relevantly, are there any overrides in /etc/share/sddm.conf.d that aren't in the file you posted?

Offline

#6 2022-03-12 07:45:12

byjove01
Member
From: Alps, France
Registered: 2021-02-15
Posts: 223

Re: [SDDM] No background when I connect

Well, I remember that it worked perfectly before. What a pity I couldn't keep the image into the .system folder.
The themes.user.conf contains the exact same text you just quoted, and I tried to put an absolute file to my original image ; it worked this time, but the background image isn't adapted to the screen and so it doesn't match to the SDDM interface.

I also feel like there's a bug into the system settings panel, because I couldn't find my image into /usr/share/sddm/themes/(mytheme). A failing code must probably prevent the panel to export the selected image into this folder, even with full permissions (I chmod'd the folder to 777, same thing happens).

Offline

#7 2022-03-12 08:51:03

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: [SDDM] No background when I connect

Are you actually using your own theme or are you using one of the builtin themes and just changing the background? If you are using your own theme, then you have to configure KDE to use that but you have to google on how to do it and the theme would probably need to reside in .local/share/plasma or ./ocal/share/sddm.
On the other hand if you are using a default theme, like Breeze for example, and just changing the background, then just set Breeze as the default theme in System Settings then put your own background image in /usr/shame/sddm//themes/breeze.  Then in that directory, edit theme.conf.user like:

[General]
background=<your image>.jpg
type=image

I'm not sure it's a good idea to have plasma stuff in a custom localized .system directory for plasma stuff because you will need a way to tell plasma where things reside and it might work in the beginning but will probably break on subsequent upgrade. If you want the theme to be persistent, then you probably have to build your own custom theme, install it in plasma then choose it as your default theme in System Settings. I'm not sure if there is a bug here.

Last edited by d_fajardo (2022-03-12 09:07:52)

Offline

Board footer

Powered by FluxBB