KDE4 - Simple KScreensaver using custom background image

“Standart background…ugly”

For the beauty of a system you can placed your current background for your Kscreensaver instead of the default.

KDE is by default not able to changes this for the ‘Simple Lock’, see in this[1] open bug for more Info.

But there is a a small workaround for this[2][3].

Change into the /usr/share/apps/ksmserver/screenlocker/org.kde.passworddialog/contents/ui/ directory and edit the main.qml with your editor of your choice.

Create a backup of this file,

cp main.qml main.qml.baku

then edit on the line 45 and replace:

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

Now you copy your current background image to "1920x1080.jpg".

“Standart Backgroud gone …yeay!

Note you have to redo this for each update of the package ‘‘kdebase-workspace’’.


[1] https://bugs.kde.org/show_bug.cgi?id=312828

[2] http://lists.opensuse.org/opensuse-kde/2013-02/msg00082.html

[3] http://forum.kde.org/viewtopic.php?f=66&t=110039

[4] https://wiki.archlinux.org/index.php/KDE#Setting_the_screensaver_background_to_the_same_as_the_current_one