Merge pull request #42 from CalfMoon/swww-daemon

fix: remove swww deprecation warning
This commit is contained in:
Roman 2024-05-10 16:16:37 +09:00 committed by GitHub
commit c87c9d323b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ class App(Gtk.Window):
# Check available monitors: # Check available monitors:
monitor_names = ["All"] monitor_names = ["All"]
try: try:
subprocess.Popen(["swww", "init"]) subprocess.Popen(["swww-daemon"])
query_output = str(subprocess.check_output(["swww", "query"], encoding='utf-8')) query_output = str(subprocess.check_output(["swww", "query"], encoding='utf-8'))
monitors = query_output.split("\n") monitors = query_output.split("\n")
for monitor in monitors[:-1]: for monitor in monitors[:-1]:

View File

@ -42,7 +42,7 @@ def change_wallpaper(image_path, cf, monitor, txt):
time.sleep(0.005) time.sleep(0.005)
except Exception as e: except Exception as e:
print(f"{txt.err_kill} {e}") print(f"{txt.err_kill} {e}")
subprocess.Popen(["swww", "init"]) subprocess.Popen(["swww-daemon"])
command = ["swww", "img", image_path] command = ["swww", "img", image_path]
command.extend(["--resize", fill]) command.extend(["--resize", fill])
command.extend(["--fill-color", cf.color]) command.extend(["--fill-color", cf.color])