lennart-rth / Live-Earth-Wallpapers

A collection of all earth related space Images in one script to set as your Desktop background.
GNU General Public License v3.0
301 stars 13 forks source link

Can't set time to switch #41

Closed WinKevin66 closed 2 weeks ago

WinKevin66 commented 3 weeks ago

Hi,

I can switch wallpaper by manual, but can't 'create new scheduler', and the status always is 'Not running'.

On this picture, what i only can do is 'Test now', and it can go, but other three are not working.

Thank you for your reply!

wechat_2024-10-16_093022_709

WinKevin66 commented 3 weeks ago

Sorry for not telling about environment, I use it on Linux with 'pop!OS', my desktop environment is 'pop:GNOME'

lennart-rth commented 2 weeks ago

Hi, sounds like there is a problem with systemctl (the scheduler). Can you try and click on "new schedule" and then see if it has been created? (sudo systemctl status liewa.service or systemctl --user status liewa.serviceor journalctl -u liewa.service).

If not you can try to set it up manually and see why or where it fails: sudo nano /etc/systemd/system/liewa.service with the following:

[Unit]
Description=Liewa Service

[Service]
Type=simple
ExecStart=/bin/bash liewa-cli

[Install]
WantedBy=graphical.target
  1. sudo nano /etc/systemd/system/liewa.timer with the following:
    
    [Unit]
    Description=Liewa Timer

[Timer] OnCalendar=-- :00:00

[Install] WantedBy=timers.target



3.  Then do:
`sudo systemctl daemon-reload`,
`sudo systemctl enable liewa.timer`,
`sudo systemctl start liewa.timer`,
`sudo systemctl start liewa.service` etc.
Check the status with `sudo systemctl status liewa.service` again. What is the output?

You can remove the service with `systemctl stop`, `disable` and deleting the liewa.service and liewa.timer files.
WinKevin66 commented 2 weeks ago

Hi, I got it! I found that, liewa.service and liewa.timer don't appear in /etc/systemd/system/, but in /opt/liewa/_internal/liewa, then I copy them to first directory and modify something, fellow the steps you said, it's running!!Thank you!!