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

Does wallpaper "Picture of the Day" change automatically?

Tags: None
(comma "," separated)
User avatar
cdysthe-neon
Registered Member
Posts
18
Karma
0
OS
Hi,

If I set wallpaper to "Picture of the Day" on Neon will it change automatically at a certain time of day/night?
User avatar
Rog131
Registered Member
Posts
828
Karma
10
cdysthe-neon wrote:Hi,

If I set wallpaper to "Picture of the Day" on Neon will it change automatically at a certain time of day/night?


Yes, it should be - potd (picture of the day) has been ported to the Plasma 5.9:
- https://phabricator.kde.org/D3184
- https://phabricator.kde.org/R114:30c8cd ... 2aef02fc7e

Part of the plasma addons: https://cgit.kde.org/kdeplasma-addons.git/

The .../kdeplasma-addons/dataengines/potd/potd.cpp is telling:

Code: Select all
    m_checkDatesTimer = new QTimer( this );//change picture after 24 hours
User avatar
cdysthe-neon
Registered Member
Posts
18
Karma
0
OS
Rog131 wrote:
cdysthe-neon wrote:Hi,

If I set wallpaper to "Picture of the Day" on Neon will it change automatically at a certain time of day/night?


Yes, it should be - potd (picture of the day) has been ported to the Plasma 5.9:
- https://phabricator.kde.org/D3184
- https://phabricator.kde.org/R114:30c8cd ... 2aef02fc7e

Part of the plasma addons: https://cgit.kde.org/kdeplasma-addons.git/

The .../kdeplasma-addons/dataengines/potd/potd.cpp is telling:

Code: Select all
    m_checkDatesTimer = new QTimer( this );//change picture after 24 hours


Thanks. However, it doesn't change on my desktop unless I log out and in again or reboot. On the lock and login screens it does change daily though. Anything I could do to have it work on the desktop as well? I posted separately on this here:

viewtopic.php?f=309&t=139246&p=373030&hilit=picture+of+the+day#p373030
pataphysicianer
Registered Member
Posts
6
Karma
0
I am on Plasma 5.9.3, and it seems to take 48 hours to change the first time from fresh login, this is using National Geographic, and I can tell the image for the potd on my screen locker changes every day.
The screen locker stores its image in a separate location, and probably doesn't really need to use the timer function, because every time its called it is going to updateSourceEvent. I haven't tested yet whether it changes in 24 hour intervals after it finally updates for the first time at 48 hours.

It also seems like the checkDayChanged function would be better off using QDate instead of QDateTime, I think most people would want it to change every new day, not every 24 hours, these are actually two different things.
User avatar
cdysthe-neon
Registered Member
Posts
18
Karma
0
OS
pataphysicianer wrote:I am on Plasma 5.9.3, and it seems to take 48 hours to change the first time from fresh login, this is using National Geographic, and I can tell the image for the potd on my screen locker changes every day.
The screen locker stores its image in a separate location, and probably doesn't really need to use the timer function, because every time its called it is going to updateSourceEvent. I haven't tested yet whether it changes in 24 hour intervals after it finally updates for the first time at 48 hours.

It also seems like the checkDayChanged function would be better off using QDate instead of QDateTime, I think most people would want it to change every new day, not every 24 hours, these are actually two different things.


Seems to take more than 48 hours on my laptop. Now I have had the same wallpaper since Friday of last week. Unless I now reboot it seems to be stuck on the same one. Is there a way I can find out why it isn't changing? I am not much of a coder, but can read a script or two if I have to.

Edit: I checked the National Geographic site today and a new picture is up. I still have the old one from mid last week. Reboot, or switiching back and forth to Nat Geo picture of the day still displays the old one.


Bookmarks



Who is online

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