This forum has been archived. All content is frozen. Please use KDE Discuss instead.

screen locker image/wallpaper - how to change it

Tags: None
(comma "," separated)
User avatar
google01103
Manager
Posts
6668
Karma
25
After a recent upgrade when I unlock my screen, the lock screen has a wallpaper background that I never had before, it was always black iirc but now it is the wallpaper Elarun Image where is this configured?

thanks,


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
einar
Administrator
Posts
3402
Karma
7
OS
It's the default wallpaper specified by the current Plasma theme. See also this bug report.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
google01103
Manager
Posts
6668
Karma
25
as always thanks,


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25

Sat Feb 16, 2013 12:08 pm
Here a workaround from the openSUSE mailing list if someone cares http://lists.opensuse.org/opensuse-kde/ ... 00082.html

A terribe workaround would be to modify
/usr/share/kde4/apps/ksmserver/screenlocker/org.kde.passworddialog/contents/ui/main.qml
file.
Changing
- source: theme.wallpaperPathForSize(parent.width, parent.height)
+ source: "1920x1080.jpg"
and adding picture named 1920x1080.jpg in
/usr/share/kde4/apps/ksmserver/screenlocker/org.kde.passworddialog/contents/ui/
dir, would change the wallpaper for locker only, but this obviosly can't be
used on distro level, and would be overwritten on upgrades.
arkascha


OpenSuse Leap 42.1 x64, Plasma 5.x

piit79
Registered Member
Posts
1
Karma
0
As pointed out above the default wallpaper is specified in the desktop theme.

I therefore made a copy of the system Oxygen theme by creating a new folder in
$HOME/.kde/share/apps/desktoptheme/
and linking into it all folders and files in
/usr/share/kde4/apps/desktoptheme/oxygen
apart from file metadata.desktop which I copied and changed the name of the default wallpaper.

I then selected the new theme and voila - the locker now uses my preferred wallpaper :)
kettle
Registered Member
Posts
2
Karma
0
This is not an optimal solution, but one way is to overwrite the image that (by default) kde points to.
On my gentoo system, I went into the folder:

/usr/share/wallpapers/Elarun/contents/images/

(Elarun is the default wavy blue wallpaper you get at login and when locking screen)

I created a backup of the file (2560x1600.png) and copied my desired wallpaper into its place.
http://imgur.com/egJxbzQ

Now it functions as I desire. I wish there was a better way that I could do this.

Good luck.
kettle
Registered Member
Posts
2
Karma
0
piit79 wrote:As pointed out above the default wallpaper is specified in the desktop theme.


I changed my default theme and it did not apply to my locked screen wallpaper. There appears to be a system default (it might affect the icon loading screen when you log into your machine as well, I turned mine off)
D-Jo
Registered Member
Posts
6
Karma
0
To do it properly, using any image:

Copy an existing wallpaper profile as a template:
cd .kde4/share/wallpapers/
cp -r /usr/share/wallpapers/ExistingWallpaper .

Change the name in the directory, and edit the .desktop file:
mv ExistingWallpaper MyWallpaper
vim MyWallpaper/metadata.desktop
[Desktop Entry]
Name=MyWallpaper
X-KDE-PluginInfo-Name=MyWallpaper


Remove existing images:
rm MyWallpaper/contents/screenshot.png
rm MyWallpaper/contents/images/*

Copy new image in:
cp MyWallpaper.png MyWallpaper/contents/images/1920x1080.png

Edit the metadata profile for the current theme:
cp .kde4/share/apps/desktoptheme/MyTheme/metadata.desktop metadata.desktop.orig
vim .kde4/share/apps/desktoptheme/MyTheme/metadata.desktop
[Wallpaper]
defaultWallpaperTheme=NewWallpaper
defaultFileSuffix=.png
defaultWidth=1920
defaultHeight=1080


Now lock the screen and see if it worked!
User avatar
perspectoff
Registered Member
Posts
5
Karma
0
OS
A "terrible" workaround would be to modify the screen lock configuration file
/usr/share/kde4/apps/ksmserver/screenlocker/org.kde.passworddialog/contents/ui/main.qml

Changing
- source: theme.wallpaperPathForSize(parent.width, parent.height)
+ source: "1920x1080.png"

and adding picture named 1920x1080.png into the dir

/usr/share/kde4/apps/ksmserver/screenlocker/org.kde.passworddialog/contents/ui/

which will change the wallpaper for locker only (but this obviously can't be
used on distro level, and would be overwritten on upgrades).

This method worked best for me in Kubuntu (with KDE 4.12), and I am happy with it. It was not necessary to use a 1920x1080 image, and I used the 1366x768 Ariya image that had been used on my screen in the past (and which fits my laptop screen). It is important to include the quotation marks around the filename (which gave me a troubleshooting headache when I forgot them).

I don't like the Elarun images, so I ended up copying all the (bland, but preferable to me) Ariya images into the Elarun folder (in /usr/share/wallpapers/Elarun) anyway (though this wasn't necessary for the screen lock changes).
User avatar
spmaster
Registered Member
Posts
1
Karma
0
OS
Why you don't use systemsettings - Harware/Display and monitor/ Screen locker - Desktop widgets (without widgets) ?
alexh
Registered Member
Posts
1
Karma
0
OS
Hello.

There is another workaround.
First you need to copy default wallpaper to $HOME
Code: Select all
cp -r /usr/share/wallpapers/Elarun ~/.kde4/share/wallpapers

Then you can easily replace ~/.kde4/share/wallpapers/Elarun/contents/images/2560x1600.png with image you want.
You may also need to clean cache
Code: Select all
$ rm -r /var/tmp/kdecache-$USER/plasma-wallpapers/usr/


Running KDE 4.12.2
User avatar
RobinHood
Registered Member
Posts
29
Karma
0
OS
I just lock widgets and settings stay the same after reboot.


FreeBSD 10.0, KDE 4.12.2
User avatar
jamadagni
Registered Member
Posts
20
Karma
0
OS
spmaster wrote:Why you don't use systemsettings - Harware/Display and monitor/ Screen locker - Desktop widgets (without widgets) ?

Because I want to use a screen saver as my locker, but when I get the unlock display, I want to see my preferred wallpaper and not Elarun.
User avatar
jamadagni
Registered Member
Posts
20
Karma
0
OS
People, https://bugs.kde.org/show_bug.cgi?id=312828#c11 seems to be best option to get the desired behaviour. But also see my notes under https://bugs.kde.org/show_bug.cgi?id=312828#c13 else the above may not work (for your screen resolution).
jonesmike
Registered Member
Posts
1
Karma
0
alexh wrote:Hello.

There is a fantastic Proextender review and another workaround.
First you need to copy default wallpaper to $HOME
Code: Select all
cp -r /usr/share/wallpapers/Elarun ~/.kde4/share/wallpapers

~/.kde4/share/wallpapers/Elarun/contents/images/2560x1600.png with image you want.
You may also need to clean cache
Code: Select all
$ rm -r /var/tmp/kdecache-$USER/plasma-wallpapers/usr/


Running KDE 4.12.2


I've done this and it's weird that I've cleared all caches but every time I change my wallpaper it reverts back to the elarun picture. I think maybe there's something else I need to do? I miss my old Homer Simpson wallpaper.

Last edited by jonesmike on Tue Feb 08, 2022 9:39 am, edited 6 times in total.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], paulgureghian, Yahoo [Bot]