Reply to topic

screen locker image/wallpaper - how to change it

User avatar google01103
Manager
Posts
4965
Karma
17
OS
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 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
User avatar einar
Administrator
Posts
2288
Karma
5
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
4965
Karma
17
OS
as always thanks,


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
User avatar google01103
Manager
Posts
4965
Karma
17
OS

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 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
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

 
Reply to topic

Bookmarks



Who is online

Registered users: 16777216, Azzart, Baidu [Spider], Bing [Bot], Buddlespit, eddiej, Exabot [Bot], garthecho, Google [Bot], Hans, housepig, irisuser, La Ninje, Majestic-12 [Bot], Naver Yeti [Spider], orbmiser, paulmcvay, searchfgold6789, Sentynel, soldier9599, tparrott, Uri_Herrera, veqz, Yahoo [Bot]