Compare commits

..

2 commits

Author SHA1 Message Date
Emma Nora Theuer
b3659914cd Fixed a bug where use of the blocking scheduler was not correctly logged 2024-09-02 16:56:13 +02:00
Emma Nora Theuer
d21fd29dff Fix bug that always resulted in a FileNotFoundError 2024-09-02 16:38:52 +02:00
2 changed files with 2 additions and 2 deletions

View file

@ -243,8 +243,8 @@ class WallpaperLogic(_ConfigLib):
for changing_time in range(len(self.config_changing_times)): for changing_time in range(len(self.config_changing_times)):
clean_time = self._clean_times(changing_time) clean_time = self._clean_times(changing_time)
scheduler.add_job(self.set_wallpaper_by_time, trigger=CronTrigger(hour=clean_time[0], minute=clean_time[1], second=clean_time[2])) scheduler.add_job(self.set_wallpaper_by_time, trigger=CronTrigger(hour=clean_time[0], minute=clean_time[1], second=clean_time[2]))
scheduler.start()
logger.info("The blocking scheduler has been started.") logger.info("The blocking scheduler has been started.")
scheduler.start()
if self.config_systray: if self.config_systray:
import wallman_systray as systray import wallman_systray as systray

View file

@ -34,7 +34,7 @@ def on_quit(icon, item, callback):
icon.stop() icon.stop()
chdir("/etc/wallman/icons/systrayIcon") chdir("/etc/wallman/icons/")
try: try:
icon_image = Image.open("systrayIcon.jpg") icon_image = Image.open("systrayIcon.jpg")
except FileNotFoundError: except FileNotFoundError: