mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-08-16 11:40:44 +03:00
Merge pull request #42 from CalfMoon/swww-daemon
fix: remove swww deprecation warning
This commit is contained in:
commit
c87c9d323b
@ -200,7 +200,7 @@ class App(Gtk.Window):
|
||||
# Check available monitors:
|
||||
monitor_names = ["All"]
|
||||
try:
|
||||
subprocess.Popen(["swww", "init"])
|
||||
subprocess.Popen(["swww-daemon"])
|
||||
query_output = str(subprocess.check_output(["swww", "query"], encoding='utf-8'))
|
||||
monitors = query_output.split("\n")
|
||||
for monitor in monitors[:-1]:
|
||||
|
@ -42,7 +42,7 @@ def change_wallpaper(image_path, cf, monitor, txt):
|
||||
time.sleep(0.005)
|
||||
except Exception as e:
|
||||
print(f"{txt.err_kill} {e}")
|
||||
subprocess.Popen(["swww", "init"])
|
||||
subprocess.Popen(["swww-daemon"])
|
||||
command = ["swww", "img", image_path]
|
||||
command.extend(["--resize", fill])
|
||||
command.extend(["--fill-color", cf.color])
|
||||
|
Loading…
Reference in New Issue
Block a user