mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-11-22 07:22:19 +03:00
Fix bug where there was not enough delay on first wallpaper change to set hyprpaper correctly.
This commit is contained in:
parent
27452960ed
commit
362d320125
@ -84,8 +84,11 @@ def change_wallpaper(image_path, cf, monitor, txt):
|
||||
|
||||
# hyprpaper backend:
|
||||
elif cf.backend == "hyprpaper":
|
||||
subprocess.Popen(["hyprpaper"])
|
||||
time.sleep(0.01)
|
||||
try:
|
||||
str(subprocess.check_output(["pgrep", "hyprpaper"], encoding='utf-8'))
|
||||
except Exception:
|
||||
subprocess.Popen(["hyprpaper"])
|
||||
time.sleep(1)
|
||||
preload_command = ["hyprctl", "hyprpaper", "preload", image_path]
|
||||
if monitor == "All":
|
||||
monitor = ""
|
||||
|
Loading…
Reference in New Issue
Block a user