Summary: | Store path to current POTD image in in its config file to enable various useful purposes for other software | ||
---|---|---|---|
Product: | [Plasma] kdeplasma-addons | Reporter: | jan.claussen10 |
Component: | Picture of the Day | Assignee: | Guo Yunhe <i> |
Status: | CONFIRMED --- | ||
Severity: | wishlist | CC: | luisbocanegra17b, mvourlakos, nate, plasma-bugs |
Priority: | NOR | ||
Version: | 5.23.3 | ||
Target Milestone: | --- | ||
Platform: | Manjaro | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
jan.claussen10
2021-11-17 11:24:49 UTC
Seems like a bug in Latte Dock. (In reply to Nate Graham from comment #1) > Seems like a bug in Latte Dock. no it isnt, Plasma does not provide a way to inform others what image is painting. Latte is doing its own heuristics and also it provides its own dbus API if others want to inform Latte what background they are painting. This is how https://github.com/psifidotos/latte_slideshow_wallpaper succeeds in this and others wallpaper plugins do not. Latte based on the plasma-appletsrc config file tracks changes only for color and image file plugins nothing else because it can not find them in them plasma-appletrc file. So what does Plasma need to do exactly? (In reply to Nate Graham from comment #3) > So what does Plasma need to do exactly? Solution 1: Solve this for all cases with: https://phabricator.kde.org/T13037 Solution 2a: The "Picture of Day" plugin will write in its settings file the path of the current drawn picture of the day Solution 2b: The "Picture of Day" plugin will write in its settings file the main background color for the current drawn picture so Latte afterwards will decide what is the best contrasted text to use; light or dark. Solution 3: use a dbus call to inform Latte what is the image path of the current drawn background like latte slideshow is already doing: https://github.com/psifidotos/latte_slideshow_wallpaper/blob/master/contents/ui/LatteTracer.qml#L60 Solution 1 seems like the best to me, but also exposing the path to the current POTD wallpaper somewhere feels reasonable. Let's make this bug report about that, since https://phabricator.kde.org/T13037 seems to have gotten stuck Great that this is getting in motion! Since Plasma can now correctly adjust its accent hue to the POTD image, shouldn't it be able to easily fix this? (In reply to jan.claussen10 from comment #8) > Since Plasma can now correctly adjust its accent hue to the POTD image, > shouldn't it be able to easily fix this? no it isnt related, accent color has nothing to do with per screen edge - brightness level. Ah okay. I thought that there would be at least an interface now to get the picture information. Pity, solution 2b seems so easy to implement. 2a I mean I think there would be a solution, altough kind of a hacky one. The current picture urls are written into /home/user/.cache/plasma_engine_potd/ in the .json files of their providers. If you could somehow query the currently set provider, you could get the current picture. But if any filenames would change, it would easily break I guess *** Bug 476954 has been marked as a duplicate of this bug. *** |