Bug 312828 - simple locker should allow for custom background
Summary: simple locker should allow for custom background
Status: RESOLVED FIXED
Alias: None
Product: kscreensaver
Classification: Miscellaneous
Component: locker-qml (show other bugs)
Version: 4.9.97 RC2
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 319232 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-07 16:50 UTC by Gandalf Lechner
Modified: 2016-08-14 13:55 UTC (History)
30 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gandalf Lechner 2013-01-07 16:50:58 UTC
presently it uses some purple-blue default wallpaper as background and apparantly can not be configured otherwise

Reproducible: Always
Comment 1 Andrea Bocci 2013-01-10 10:17:24 UTC
Confirmed on Ubuntu 12.10 with KDE 4.9.97.
Comment 2 Andrea Bocci 2013-01-10 10:31:54 UTC
Additionally, when used to unlock a standard screensaver, the dialog should be displayed without drawing any background, but leave the screensaver running.
Comment 3 Frits Spieker 2013-01-12 18:44:13 UTC
On top of that, it would be really nice if the screen would *not* lock if so configured. I do have screensaver enabled, but the "needs password to unlock" is not ticked, yet the screen gets password locked nonetheless. (4.9.97 on OpenSuse 12.2 64bit)
Comment 4 Kristian Markon 2013-03-14 04:51:03 UTC
*** This bug has been confirmed by popular vote. ***
Comment 5 Janet 2013-05-07 03:26:52 UTC
I'd wish it would be possible to define the kind of background it uses: individual wallpaper or just a single color.
Comment 6 Ľubomír Kučera 2013-05-07 04:44:17 UTC
*** Bug 319232 has been marked as a duplicate of this bug. ***
Comment 7 Francesco 2013-08-29 21:16:46 UTC
some screensavers (like phosphor, xscreensaver) appear ugly when running over the default wallpaper. The availability to choose a black background can improve the visual impact
Comment 8 Eric Francis 2013-09-11 16:38:05 UTC
Currently, the wallpaper is defined by the desktop theme, which most themes don't override the default wallpaper (but I have found one that does called Mirado).

My suggestion for the set of options for setting up the locker background:
* Default Image (the current KDE default wallpaper)
* Desktop Theme Image (if available)
* Current Desktop Wallpaper (if you change desktops/activities it uses whatever was on the screen at the time you locked it)
* ScreenSaver (which would only display the dialog when there is user input, black background behind the screensaver)
* Single Color
* Image (reuse selector for choosing desktop wallpaper)
* Slide Show
* (a subset of) the other options for desktop wallpaper, (including pattern, picture of the day, animation (maybe))
* Desktop Widgets (could be nice to have this as a separate toggle, so you could set up desktop widgets with screensaver, or with another custom background.  Having widgets on the locker should be separate from setting up the background of the locker)
Comment 9 catlover2 2013-09-30 04:16:29 UTC
I agree with this report. Running KDE 4.11.1 from Kubuntu Backports on Kubuntu 12.04.

As a workaround, symlink everything in ~/.kde/share/apps/desktoptheme/$yourtheme except metadata.desktop (which needs to be copied) to /usr/share/kde4/apps/desktoptheme/$yourtheme. Then, in section [Wallpaper] of ~/.kde/share/apps/desktoptheme/$yourtheme/metadata.desktop, change the value of defaultWallpaperTheme to whichever theme you prefer.
Comment 10 Janet 2013-09-30 12:25:21 UTC
(In reply to comment #9)
Thanks for the hint. Indeed it works when you add a [Wallpaper]-section to the current theme's metadata.desktop (in case it doesn't have one) and add the name of some wallpaper theme.

I tried to add a metadata.desktop with my chosen wallpaper theme to  ~/.kde/share/apps/desktoptheme/default, I tried to erase the wallpaper entry from the default theme,   I tried to re-symlink the kde-default.png in /usr/share/wallpapers to something else than Elarun, delete it (for I was hoping when there IS no default wallpaper then maybe my wallpaper would be displayed) - all did not work, nontheless got the Elarun wallpaper. Is it defined somewhere else as default?
Comment 11 catlover2 2013-10-01 00:13:36 UTC
(In reply to comment #10)
> (In reply to comment #9)
> Thanks for the hint. Indeed it works when you add a [Wallpaper]-section to
> the current theme's metadata.desktop (in case it doesn't have one) and add
> the name of some wallpaper theme.
> 
> I tried to add a metadata.desktop with my chosen wallpaper theme to 
> ~/.kde/share/apps/desktoptheme/default,
You did symlink the contents ~/.kde/share/apps/desktoptheme/default to /usr/share/kde4/apps/desktoptheme/default, right? In my case ~/.kde/share/apps/desktoptheme/default existed but was mostly empty.
> I tried to erase the wallpaper entry from the default theme,   I tried to re-symlink the kde-default.png in
I don't _think_ kde-default.png has any effect here. (Honestly, I have no idea what it's for.) I suppose, to be absolutely sure, you could replace /usr/share/wallpapers/Elarun/contents/images/2560x1600.png with your preferred image, but that seems a bit overkill.
> /usr/share/wallpapers to something else than Elarun, delete it (for I was
> hoping when there IS no default wallpaper then maybe my wallpaper would be
> displayed) - all did not work, nontheless got the Elarun wallpaper. Is it
> defined somewhere else as default?

Just to clarify, here's what I did:
cd ~/.kde/share/apps/desktoptheme/default
rm -r ./*
ln -s /usr/share/kde4/apps/desktoptheme/default/* ./
cp metadata.desktop metadata.desktop.orig
rm metadata.desktop
cat metadata.desktop.orig | sed s/Elarun/$mytheme/g > metadata.desktop # I really used nano, but you get the idea. ;)

Then I re-selected the "Air" (change "default" above for others) theme in System Settings, locked the screen, and there was my background.
Comment 12 Shriramana Sharma 2014-04-25 16:15:23 UTC
@catlover2: Thank you very much for those steps which indeed worked! Just a few notes possibly for others' benefit:

(In reply to comment #11)
> Just to clarify, here's what I did:
> cd ~/.kde/share/apps/desktoptheme/default
> rm -r ./*
> ln -s /usr/share/kde4/apps/desktoptheme/default/* ./
> cp metadata.desktop metadata.desktop.orig

Above line required to get actual file from the symlink.

> rm metadata.desktop

To remove symlink in advance of below output.

> cat metadata.desktop.orig | sed s/Elarun/$mytheme/g > metadata.desktop 

One point is that whatever $mytheme is should be present under /usr/share/wallpapers/. (Is there some other directory under $HOME that is searched for wallpaper themes as well? I don't know.)

> Then I re-selected the "Air" (change "default" above for others) theme in
> System Settings, locked the screen, and there was my background.

One caveat: The defaultWidth and defaultHeight settings should correspond to a height that actually exists for the theme. For instance I like Horos but that does not have the 2560x1600 which seems to be the default size under /usr/share/kde4/apps/desktoptheme/default/metadata.desktop. So until I changed it to 1920x1080 which best suits my screen geometry I was getting only a black background and not the desired wallpaper.
Comment 13 Shriramana Sharma 2014-04-25 16:16:55 UTC
@catlover2: Thank you very much for those steps which indeed worked! Just a few notes possibly for others' benefit:

(In reply to comment #11)
> Just to clarify, here's what I did:
> cd ~/.kde/share/apps/desktoptheme/default
> rm -r ./*
> ln -s /usr/share/kde4/apps/desktoptheme/default/* ./
> cp metadata.desktop metadata.desktop.orig

Above line required to get actual file from the symlink.

> rm metadata.desktop

To remove symlink in advance of below output.

> cat metadata.desktop.orig | sed s/Elarun/$mytheme/g > metadata.desktop 

One point is that whatever $mytheme is should be present under /usr/share/wallpapers/. (Is there some other directory under $HOME that is searched for wallpaper themes as well? I don't know.)

> Then I re-selected the "Air" (change "default" above for others) theme in
> System Settings, locked the screen, and there was my background.

One caveat: The defaultWidth and defaultHeight settings in the (newly created) metadata.desktop should (be changed to) correspond to a size that actually exists for the theme. For instance I like Horos but that does not have 2560x1600 which seems to be the default size under /usr/share/kde4/apps/desktoptheme/default/metadata.desktop. Until I changed defaultWidth and defaultHeight in ~/.kde/.../metadata.desktop to 1920x1080 which best suits my screen geometry, I was getting only a black background and not the desired wallpaper.
Comment 14 None 2014-12-24 20:49:19 UTC
Yes, I file for this bug because I miss the option to configure some log off / switch user / shutdown / reboot options. Also a simple change option to change the background would be really nice.
Comment 15 temporary987 2014-12-30 16:52:31 UTC
Seems like developers ignore this bug... Who develops kscreenlock?
Comment 16 Bhushan Shah 2014-12-30 16:56:39 UTC
Hello!

No developers are not ignoring this bug, support for changing background of kscreenlocker was recently added in Plasma 5. http://commits.kde.org/plasma-workspace/85f98e1e2aae0b1f43abe047076a3dd5c2934f4a

We can not add features in KDE4 as this is feature frozen. but since this is fixed in Plasma 5, marking as RESOLVED.

Thanks
Comment 17 temporary987 2014-12-30 18:02:20 UTC
(In reply to Bhushan Shah from comment #16)
> Hello!
> 
> No developers are not ignoring this bug, support for changing background of
> kscreenlocker was recently added in Plasma 5.
> http://commits.kde.org/plasma-workspace/
> 85f98e1e2aae0b1f43abe047076a3dd5c2934f4a
> 
> We can not add features in KDE4 as this is feature frozen. but since this is
> fixed in Plasma 5, marking as RESOLVED.
> 
> Thanks

Great. Thank you.
Comment 18 Gilboa Davara 2014-12-31 06:16:00 UTC
Thanks.